Math.atan2( y, x ) in ECMAScript 262

Return the arc tangent of the quotient y/x, where the signs of y and x are used to determine the quadrant of the result, in radians.

Arguments

nametypedescription
y Number The cartesian y-coordinate.
x Number The cartesian x-coordinate.
Return Type
Number