Back to Math
atan2
Two-argument arc tangent.
Syntax
atan2(y, x) → Angle in radians from the positive x-axis to (x, y)
Backends
TypeScript
Description
Two-argument arc tangent.
Parameters
| Name | Description |
|---|---|
| y | Y coordinate |
| x | X coordinate |
Returns
Angle in radians from the positive x-axis to (x, y)