Posted By

alexaivars on 05/29/09


Tagged

math difference angle


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

flashinit


Difference Between Two Angles


 / Published in: ActionScript 3
 

  1. // from http://actionsnippet.com/?p=1451
  2. function angleDifference(angle0:Number, angle1:Number):Number{
  3. return Math.abs((angle0 + 180 - angle1) % 360 - 180);
  4. }

Report this snippet  

You need to login to post a comment.