atan2
atan2(y, x)
Input: y, x · Output: no output
What it is
Four-quadrant arctangent in radians, (-π, π]: the angle of the point (x, y), so atan2(1, -1) is 3π/4 where atan(1/-1) would say -π/4. Broadcasts like max(a, b) (scalar/Vec/Mat, equal lengths or a scalar); unequal vector lengths are an error. atan2(0, 0) is 0.
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
atan2(y, x) | y —not documented yetx —not documented yet | not documented yet | Broadcasts like max(a, b) (scalar/Vec/Mat, equal lengths or a scalar); unequal vector lengths are an error. atan2(0, 0) is 0. |
Examples
No documentation example calls this form yet. The Core maths chapter is where one belongs.