This function returns the angle of a 2D coordinate.
Returns the angle that the coordinate (x, y) forms with the origin.