Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the angle (in radians) from the X axis to a point (x,y).
function atan2(y : Number , x : Number ) : Number
Arguments
x
Required. A numeric expression representing the Cartesian x-coordinate of a point.y
Required. A numeric expression representing the Cartesian y-coordinate of a point.
Remarks
The return value is between -pi and pi, representing the angle of the supplied (x,y) point.