atan2 Method

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.

Requirements

Version 1

Applies To:

Math Object

See Also

Reference

atan Method

tan Method

PI Property