JavaScript » Math » atan

Syntax:
Math.atan(x)
 
atan2 Method
This method returns the arctangent of the quotient of its arguments.
 
Syntax: Math.atan2(y, x)

This method returns the arctangent of a number as a numeric value between -PI/2 and PI/2 radians.