Libraries anvil math atan2

float atan2(float a, float b)
Converts rectangular coordinates (b, a) to polar (r, theta). This method computes the phase theta by computing an arc tangent of a/b in the range of -pi to pi.