atan2(a, b)

Calculate arcus tangent defined on whole circle.

aThe denumerator.
bThe numerator.
return valueThe corrected angle atan(b/a).

Based on signs of a and b, the exact quarter of the circle for the angle can be calculated. Theatan2 calculates atan(b/a), and corrects its angle.

The arguments can only be real numbers or quantities with same unit.

atan2(-1, -1) as degrees