/ Published in: ActionScript 3

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var diffAngle:Number = Math.atan2(Math.sin(angleTo - currentAngle), Math.cos(angleTo - currentAngle));
URL: http://blog.open-design.be/2009/06/02/find-the-shortest-rotation-angle-between-two-angles/
Comments
