atan2(), takes two parameters (an X- and a Y-coordinate), and returns the angle formed by the right triangle measured in radians : Math : Development Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Development » Math »

 

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


 
package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

       trace(Math.atan2(2,3));
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Development
» Math