Archive for June, 2008
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;
};
Useful Trigonometry Functions in Objective-C
Monday, June 30th, 2008During our latest project, we faced a number of problems that Trigonometry solved rather nicely. I found a number of Trigonometry resources, but not any that focused on how to implement these concepts in Objective-C. We thought it would be good to post some of the more helpful functions.

