Returns the angle (in radians) from the X axis to a point (x,y).

function atan2(y : Number , x : Number ) : Number

Required. A numeric expression representing the Cartesian x-coordinate of a point.

Required. A numeric expression representing the Cartesian y-coordinate of a point.

The return value is between -pi and pi, representing the angle of the supplied (x,y) point.

Version 1

Math Object