ATAN2

Returns the arc tangent of two expressions, each representing a numerical value. x1 and x2 themselves may be expressions.
< ATAN2(x1, x2) <
ATAN2(x1, x2) > 0 if x1 > 0
ATAN2(x1, x2) = 0 if x1 = 0, x2 > 0
ATAN2(x1, x2) = if x1 = 0, x2 < 0
ATAN2(x1, x2) < 0 if x1 < 0
ABS(ATAN2(x1, x2))= if x2 = 0
ATAN2(x1, x2) undefined if x1 = 0, and x2 = 0

Format

ATAN2(x1, x2)

Arguments

 
x1
Any valid expression that evaluates to a real number.
x2
Any valid expression that evaluates to a real number.

Example

The following function shows arc tangent (in radians) of the expression a/b where a is the x component of the distance between marker_2 and marker_3 and b is the y component of the distance between marker_2 and marker_3:
ATAN2(DY(marker_2, marker_3), DX(marker_2, marker_3))