Created
March 5, 2013 03:48
-
-
Save tmcw/5087852 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// a point on a unit circle | |
pt = [ | |
Math.cos(0.6), | |
Math.sin(0.6)]; | |
// the distance from a point | |
// on the unit circle to the center | |
// is always 1 | |
Math.sqrt(Math.pow(pt[0], 2) + | |
Math.pow(pt[1], 2)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment