Calculating Degrees to Radians and Back


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



Copy this code and paste it in your HTML
  1. // Degrees to Radians
  2. radians = degrees * Math.PI / 180
  3.  
  4. // Radians to Degrees
  5. degree = radians * 180 / Math.PI

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.