/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public class MathUtils { public static function radiansToDegrees(rad:Number):Number{ return rad *180/Math.PI; } public static function degreesToRadians(deg:Number):Number{ return deg*Math.PI/180; } }