Share via


atan2 Method (JScript 5.6) 

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


Math.atan2(y, x)

Arguments

  • x
    Required. A numeric expression representing the cartesian x-coordinate.
  • y
    Required. A numeric expression representing the cartesian y-coordinate.

Remarks

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

Applies To: Math Object (JScript 5.6)

Requirements

Version 1

See Also

Reference

atan Method (JScript 5.6)
tan Method (JScript 5.6)
Math Object (JScript 5.6)