Convert Radians to Degrees


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function degrees(radians:Number):Number
  2. {
  3. return radians * 180/Math.PI;
  4. }
  5.  
  6. function radians(degrees:Number):Number
  7. {
  8. return degrees * Math.PI / 180;
  9. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.