normalizeAngle180

Restricts an angle to the range -180, +180 degrees, wrapping angles outside the range. Wrapping takes place as though traversing the edge of a unit circle; angles less than -180 wrap back to +180, while angles greater than +180 wrap back to -180.

Return

the specified angle wrapped to -180, +180 degrees

Parameters

degrees

the angle to wrap in degrees