Posted By

Meestercor on 05/27/08


Tagged

textmate convert Radian Degrees


Versions (?)

Radian and Degrees


 / Published in: Other
 

  1. public class MathUtils {
  2.  
  3. public static function radiansToDegrees(rad:Number):Number{
  4. return rad *180/Math.PI;
  5. }
  6.  
  7. public static function degreesToRadians(deg:Number):Number{
  8. return deg*Math.PI/180;
  9. }
  10. }

Report this snippet  

You need to login to post a comment.