DoubleAngleExtension extension
An extension on double with basic degrees and radians utility methods.
- 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]
. -
toDegrees(
) → double - Converts this double value in radians to degrees.
-
toRadians(
) → double - Converts this double value in degrees to radians.
-
wrap360(
) → double -
Normalizes this double value in degrees to the range
[0.0, 360.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[
.