How to Convert Degrees to Radians, Radians to Degrees in Objective-C
Monday, June 30th, 2008CGFloat DegreesToRadians(CGFloat degrees)
{
return degrees * M_PI / 180;
};
CGFloat RadiansToDegrees(CGFloat radians)
{
return radians * 180 / M_PI;
};
Tags: Graphics, Objective-C, Trigonometry

January 27th, 2009 at 11:46 pm
[...] recorded first by gr00vy on 2009-01-21→ How to Convert Degrees to Radians, Radians to Degrees in Objective-C [...]
May 29th, 2010 at 3:24 am
[...] 5.Digital Agua’s Blog » Blog Archive » How to Convert Degrees to One Response to “How to Convert Degrees to Radians, Radians to Degrees in Objective-C” … [...] recorded first by gr00vy on 2009-01-21→ How to Convert Degrees to Radians, Radians to Degrees in Objective-C [...] http://blog.digitalagua.com/2008/06/30/how-to-convert-degrees-to-radians-radians-to-degrees-in-objective-c/ [...]