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 to real.
  • x: Numeric, converted to real.

Return value

real angle in radians.

Example

datatable(y:real, x:real)[1, 1]
| extend a = atan2(y, x)
yxa
110.7853981633974483