Skip to content

Instantly share code, notes, and snippets.

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