GeographicDoubleAngleExtension extension

An extension on double with basic degrees and radians utility methods ( (for geographic coordinate reference systems).

on

Methods

clipLatitude() double
Converts this double value in degrees to a clipped latitude in the range [-90.0, 90.0].
clipLatitudeWebMercator() double
Converts this double value in degrees to a clipped latitude in the range [-85.05112878, 85.05112878] inside the Web Mercator projection coverage.
clipLongitude() double
Converts this double value in degrees to a clipped longitude in the range [-180.0 .. 180.0].
wrapLatitude() double
Converts this double value in degrees to a normalized latitude in the range [-90.0, 90.0].
wrapLongitude() double
Converts this double value in degrees to a normalized longitude in the range [-180.0, 180.0].