normalizeLongitude

Restricts an angle to the range -180, +180 degrees, wrapping angles outside the range. Wrapping takes place as though traversing a line of constant latitude which may pass through the antimeridian; angles less than -180 wrap back to +180, while angles greater than +180 wrap back to -180.

Return

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

Parameters

degrees

the angle to wrap in degrees