atan2 function

num atan2(
  1. num y,
  2. num x
)

Returns the angle theta of the polar coordinates (r, theta) that correspond to the rectangular coordinates (x, y) by computing the arc tangent of the value y/x.

The returned value is an angle in the range from -PI to PI radians.

Implementation

num atan2(num y, num x) => math.atan2(y, x);