normalizeLatitude

Restricts an angle to the range -90, +90 degrees, wrapping angles outside the range. Wrapping takes place along a line of constant longitude which may pass through the poles. In which case, 135 degrees normalizes to 45 degrees; 181 degrees normalizes to -1 degree.

Return

the specified angle wrapped to the range -90, +90 degrees

Parameters

degrees

the angle to wrap in degrees