Trigonometry
Atan2
Angle of point (x, y) from origin.
Formula
Formula
θ = atan2(y, x)
Variables
| Symbol | Definition | Type & range | Units | Role |
|---|---|---|---|---|
| x, y | point coordinates | real number (ℝ) | — | input |
Try it yourself
Interactive calculator
Worked examples
Example 1
Giveny = 1, x = 1
Result45
Example 2
Giveny = 1, x = 0
Result90