ATAN_2

Returns the arc tangent[1] of x- and y-values as an angle in radians in the correct quadrant of the range (-π,π].

Syntax:

ATAN_2(x:number, y:number)

Example:

DEG(ATAN_2(-0.866, -0.5))

returns the number -150 (degrees).

  1. Weisstein, Eric W. "Inverse Tangent." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/InverseTangent.html