clampLatitude

Restricts an angle to the range -90, +90 degrees, clamping angles outside the range. Angles less than -90 are returned as -90, and angles greater than +90 are returned as +90. Angles within the range are returned unmodified.

Return

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

Parameters

degrees

the angle to clamp in degrees