Equana

Docs/Math/atan2
Back to Math

atan2

Two-argument arc tangent.

Syntax

atan2(y, x) → Angle in radians from the positive x-axis to (x, y)

Backends

TypeScript

Description

Two-argument arc tangent.

Parameters

NameDescription
yY coordinate
xX coordinate

Returns

Angle in radians from the positive x-axis to (x, y)

Examples

Try It
>> atan2(1, 1)
0.7853981633974483

See Also