ATN2

The ATN2 function returns the arctangent of y/x.

Syntax

ATN2( y, x )

Remarks

ATN2 function calculates the arctangent of y/x returning a value in the range from Pi to -Pi radians, using the signs of both parameters to determine the quadrant of the return value. ATN2 is defined for every point other than the origin (x = 0 and y = 0).

Pi is approximately 3.141593. To convert degrees to radians, multiply degrees by Pi/180. To convert radians to degrees, multiply radians by 180/Pi.