Created
September 3, 2012 08:30
-
-
Save taberh/3607887 to your computer and use it in GitHub Desktop.
radians and degrees convert
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