/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// from http://actionsnippet.com/?p=1451 function angleDifference(angle0:Number, angle1:Number):Number{ return Math.abs((angle0 + 180 - angle1) % 360 - 180); }