atan2

Converts Cartesian x and y coordinates to polar coordinates and returns the polar angle, measured counter-clockwise from the positive x-axis.

The result will be an angle, in radians, in the range between -pi and pi.

Parameter 1 - the x-coordinate value.

Parameter 2 - the y-coordinate value.

Returns: the resulting angle, relative to the x-axis, in the range -pi and pi.