Radian and Degrees


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.