Posted By

adrianparr on 04/19/10


Tagged

rotation between as3 angle Shortest angles


Versions (?)

Who likes this?

7 people have marked this snippet as a favorite

socialflasher
Nikolai
copic
davidino1978
tspitzr
albertomori
scottwatkins


AS3 Find the shortest rotation angle between two angles


 / Published in: ActionScript 3
 

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

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

Report this snippet  

You need to login to post a comment.