Return to Snippet

Revision: 26169
at April 19, 2010 13:33 by adrianparr


Initial Code
var diffAngle:Number = Math.atan2(Math.sin(angleTo - currentAngle), Math.cos(angleTo - currentAngle));

Initial URL
http://blog.open-design.be/2009/06/02/find-the-shortest-rotation-angle-between-two-angles/

Initial Description


Initial Title
AS3 Find the shortest rotation angle between two angles

Initial Tags


Initial Language
ActionScript 3