Qu

atan2

Builtin index · Core maths

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.

CodeInputOutputDescription
atan2(y, x)
y —not documented yet
x —not documented yet
not documented yetBroadcasts 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.