Posted By

magicrebirth on 06/13/10


Tagged

math objc radians


Versions (?)

Who likes this?

6 people have marked this snippet as a favorite

espinallab
umang_nine
rvachere
yannxou
im3der
Tintenklecks


How to Convert Degrees to Radians, Radians to Degrees


 / Published in: Objective C
 

URL: http://blog.digitalagua.com/2008/06/30/how-to-convert-degrees-to-radians-radians-to-degrees-in-objective-c/

  1. CGFloat DegreesToRadians(CGFloat degrees)
  2. {
  3. return degrees * M_PI / 180;
  4. };
  5.  
  6. CGFloat RadiansToDegrees(CGFloat radians)
  7. {
  8. return radians * 180 / M_PI;
  9. };

Report this snippet  

You need to login to post a comment.