Skip to main content
Version: 5.x

Nodes > Math > Trigonometry > ATan2

ATan2

Returns the angle (in radians) formed by the horizontal offset X and vertical offset Y.

Unlike Atan, this takes the signs of X and Y into account so that the resulting angle is placed in the correct quadrant.

Inputs

NameTypeDescription
XfloatHorizontal offset
YfloatVertical offset

Outputs

NameTypeDescription
atan2( Y, X )floatAngle (in radians) formed by X and Y
Was this page helpful?
Yes
No