Skip to content

Instantly share code, notes, and snippets.

@andrevenancio
Created July 5, 2016 06:42
Show Gist options
  • Save andrevenancio/a9c29b3f0ad347a120c0490acb18321c to your computer and use it in GitHub Desktop.
Save andrevenancio/a9c29b3f0ad347a120c0490acb18321c to your computer and use it in GitHub Desktop.
var pos = tracker.getCurrentPosition();
var angleRadians = Math.atan2(pos[25][1] - pos[23][1], pos[25][0] - pos[23][0]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment