Posted By

sidneydekoning on 05/22/09


Tagged

rad as3 Degrees trig radians deg trionometry


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

mrbassman12
toxin20
babyC
arpo
TrentSkunk


Calculating Degrees to Radians and Back


 / Published in: ActionScript 3
 

  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
Posted By: babyC on February 24, 2010

I think you got the comments backwards ;) Otherwise a good snippet. I always forget those formulas ;)

Posted By: sidneydekoning on June 16, 2010

Thanks for the comment :) I changed it.

You need to login to post a comment.