atan2

Calculates the arc tangent of y / x, returning a value ranging from -π to π.

Special Values
yxatan(y, x)
NaNanythingNaN
anythingNaNNaN
±0.0>0.0±0.0
±0.0+0.0±0.0
±0.0<0.0±π
±0.0-0.0±π
>0.0±0.0π/2
<0.0±0.0-π/2
>0.0±0.0
±∞anything±π/2
>0.0-∞±π
±∞±π/4
±∞-∞±3π/4
real
atan2
(
real y
,
real x
)

Meta