日本語
English
Finding the Four-Quadrant Angle with ATAN2
What Is ATAN2?
ATAN2 is a function that finds an angle from X and Y coordinates.
Unlike the normal ATAN, it can determine all four quadrants, so it is used for
- vector direction calculation
- robot control
- servo position calculation
- AGV heading calculation
and more.
Differences between ATAN and ATAN2
| Function | Characteristics |
|---|---|
| ATAN | Finds the angle from Y/X |
| ATAN2 | Finds the angle taking the four quadrants into account |
Symbols

Input
- Y
- Y coordinate
- X
- X coordinate
In-out
- out
- Result
Download
If you found this site helpful, your support would be greatly appreciated

