Functions
ATAN2
Arctangent of y/x in radians
Try it
When to use it
When should I use ATAN2?
Use ATAN2 when you have separate x and y coordinates; it returns the angle in radians and handles all four quadrants correctly, unlike ATAN.
Used in
Syntax
ATAN2(x, y)Examples
=ATAN2(4,3) // => 0.6435011087932844
=ATAN2(1,0) // => 0
=ATAN2(0,1) // => 1.5707963267948966