math.atan2

Syntax

f = math.atan2(n1,n2)

Get the arc-tangent. The arc-tangent of n1 / n2 is returned in radians.

Note

n2 may be 0.

Returns:

f - arc-tangent of n1 / n2 in radians

Arguments:

n1 - numerator

n2 - denominator