3dSynth

Docs / SynthBlocks

Open in the interactive docs reader

Atan2

Angle in radians from Y and X coordinates. Returns the angle from the positive X-axis to the point (X, Y).

Block

Interactive preview is available in the interactive reader.

Parameters

Y
Y coordinate (vertical).
X
X coordinate (horizontal).

How it works

Atan2 gives the full 360° angle, unlike atan which only covers ±90°. Use it to convert Cartesian (x, y) to polar angle, or to compute rotation from a direction vector.