Mega Code Archive

 
Categories / Flash ActionScript / Development
 

Atan2(), takes two parameters (an X- and a Y-coordinate), and returns the angle formed by the right triangle measured in radia

package{   import flash.display.Sprite;      public class Main extends Sprite{     public function Main(){        trace(Math.atan2(2,3));     }   } }