Created
June 10, 2020 00:25
-
-
Save cosinekitty/c57282d17dfd5d6c83aff126bcb99496 to your computer and use it in GitHub Desktop.
Revisions
-
cosinekitty created this gist
Jun 10, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ function Polar(x, y) { return { angle: Math.atan2(y, x), radius: Math.sqrt(x*x + y*y) }; }