View Categories

Atan2 Node

< 1 min read

The Atan2 Node computes and outputs the angle in radians of the vector (X, Y) relative to the positive X axis. It is equivalent to atan(Y/X) but handles all four quadrants correctly and avoids division by zero when X is 0. The output is always in the range (-π, π].


Inputs

Y Audio/Control Input

The vertical component of the vector.

X Audio/Control Input

The horizontal component of the vector.


Outputs

Angle Audio/Control Output

The computed angle of the vector (X, Y), in radians.

This output supports constant folding if both the Y Input and X Input are constant.