textmode.js / Textmodifier / atan2
Method: atan2()
ts
atan2(y, x): number;Calculate the angle from a vector's y and x components.
Parameters
| Parameter | Type | Description |
|---|---|---|
y | number | Y component. |
x | number | X component. |
Returns
number
Angle in radians.