Difference Between Two Angles


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



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.