atan2(y,x) returns the arctangent, or inverse tangent, of y/x. The result will be in radians or degrees, depending on the Angles options. ATAN2 returns a value in the range –PI to PI radians (or -180 to 180 degrees), using the signs of both parameters to determine the quadrant of the return value.
____________________________
See also: