Created
July 13, 2016 13:35
-
-
Save cevherkarakoc/bdf525e96a9ee38da20e9ca7c110fdf0 to your computer and use it in GitHub Desktop.
Converting polar coordinates to cartesian coordinates
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
function polarToCartesian(radius,radian){ | |
return { | |
x:radius*Math.cos(radian), | |
y:radius*Math.sin(radian) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment