Returns the angle (in radians) from the X axis to a point.
A number representing the cartesian x-coordinate.
A number representing the cartesian y-coordinate.
Math.atan2(x, y)
Returns the angle (in radians) from the X axis to a point.