Created
February 7, 2013 21:26
-
-
Save lambdamusic/4734340 to your computer and use it in GitHub Desktop.
How to Convert Degrees to Radians, Radians to Degrees
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
CGFloat DegreesToRadians(CGFloat degrees) | |
{ | |
return degrees * M_PI / 180; | |
}; | |
CGFloat RadiansToDegrees(CGFloat radians) | |
{ | |
return radians * 180 / M_PI; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment