Static
EARTH_Earth equator perimeter in meters.
Static
EARTH_Earth equator perimeter in meters.
Static
EARTH_Average radius of earth in meters.
Static
EARTH_Earth radius in semi-major axis A as defined in WGS84.
Static
EARTH_Earth radius in semi-minor axis B as defined in WGS84.
Static
datumsStatic
datumsGet a direction vector from WGS84 coordinates.
The vector obtained will be normalized.
Direction vector normalized.
Latitude value in degrees.
Longitude value in degrees.
Static
mapboxGet altitude from RGB color for mapbox altitude encoding
https://docs.mapbox.com/data/tilesets/guides/access-elevation-data/~
The altitude encoded in meters.
Color of the pixel
Static
quadtreeConverts quad tree zoom/x/y to lat/lon in WGS84 Datum.
The X and Y start from 0 from the top/left corner of the quadtree up to (4^zoom - 1)
Zoom level of the quad tree.
X coordinate.
Y coordinate.
Static
sphericalConverts XY point from Spherical Mercator EPSG:900913 to WGS84 Datum.
X coordinate.
Y coordinate.
Static
vectorDirection vector to WGS84 coordinates.
Can be used to transform surface points of world sphere to coordinates.
WGS84 coordinates.
Direction vector.
Generated using TypeDoc
Units utils contains methods to convert data between representations.
Multiple methods are used to reprent world coordinates based on the type of data being presented.
WGS84 is the most commonly used representation with (latitude, longitude, altitude).
EPSG:900913 is used for planar coordinates in (X, Y, Z)