Skip to content

textmode.js / Textmodifier / atan2

Method: atan2()

ts
atan2(y, x): number;

Calculate the angle from a vector's y and x components.

Parameters

ParameterTypeDescription
ynumberY component.
xnumberX component.

Returns

number

Angle in radians.

Example