UNPKG

s2-tools

Version:

A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.

16 lines 804 B
export const pi = Math.PI; export const twoPi = 6.283185307179586; // pi * 2; export const deg2rad = 0.017453292519943295; // pi / 180.0; export const rad2deg = 57.29577951308232; // 180 / pi; export const minutesPerDay = 1440.0; export const mu = 398600.8; // in km3 / s2 export const earthRadius = 6378.135; // in km export const xke = 0.07436691613317342; // 60.0 / Math.sqrt((earthRadius * earthRadius * earthRadius) / mu); export const vkmpersec = 7.905370510517634; // (earthRadius * xke) / 60.0; export const tumin = 13.446839696959309; // 1.0 / xke; export const j2 = 0.001082616; export const j3 = -0.00000253881; export const j4 = -0.00000165597; export const j3oj2 = -0.002345069720011528; // j3 / j2; export const x2o3 = 0.6666666666666666; // 2.0 / 3.0; //# sourceMappingURL=constants.js.map