Function hAngle

Returns the angle (in radians) that the vector defined by the given x, y makes with the positive horizontal axis.

The angle returned is in the range -PI to PI, not including -PI.