Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created March 5, 2013 03:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmcw/5087892 to your computer and use it in GitHub Desktop.
Save tmcw/5087892 to your computer and use it in GitHub Desktop.
// a point on a unit circle
pt = [
Math.cos(0.2),
Math.sin(0.2)];
// back to the angle that
// generated that point
Math.atan2(pt[1], pt[0]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment