Atan2
atan2
Computes the arctangent of y/x, using the signs of both to determine the correct quadrant. Returns radians.
Spec
atan2(y, x) Parameters
y: Numeric, converted toreal.x: Numeric, converted toreal.
Return value
real angle in radians.
Example
datatable(y:real, x:real)[1, 1]
| extend a = atan2(y, x) | y | x | a |
|---|---|---|
| 1 | 1 | 0.7853981633974483 |