Created
February 20, 2018 09:25
-
-
Save monkianer/3653c9c33754074d95ec8e828801ceea to your computer and use it in GitHub Desktop.
Degree Radians Conversion
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
// Converts from degrees to radians. | |
Math.radians = function(degrees) { | |
return degrees * Math.PI / 180; | |
}; | |
// Converts from radians to degrees. | |
Math.degrees = function(radians) { | |
return radians * 180 / Math.PI; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment