How to Convert Degrees to Radians, Radians to Degrees in Objective-C

CGFloat DegreesToRadians(CGFloat degrees)
{
return degrees * M_PI / 180;
};

CGFloat RadiansToDegrees(CGFloat radians)
{
return radians * 180 / M_PI;
};

This entry was posted in Objective-C and tagged , , . Bookmark the permalink.

One Response to How to Convert Degrees to Radians, Radians to Degrees in Objective-C

  1. Pingback: Recent URLs tagged Objectivec - Urlrecorder

Leave a Reply