đ§ŗ The rapid-sdk math library
For example, in Node.js:
npm install @rapid-sdk/math
This library is distributed in CJS and ESM module formats for maximum compatibility. (Read more about JavaScript module formats)
const math = require('@rapid-sdk/math'); // CommonJS import all
const Extent = require('@rapid-sdk/math').Extent; // CommonJS import named
// or
import * as math from '@rapid-sdk/math'; // ESM import all
import { Extent } from '@rapid-sdk/math'; // ESM import named
constants.ts: Math ConstantsExtent.ts: Extent class for working with bounding boxesgeo.ts: Geographic (spherical) math functionsgeom.ts: Geometric (planar) math functionsnumber.ts: Number math functionsproj.ts: Projection math functionsTiler.ts: Tiler class for splitting the world into rectangular tilesTransform.ts: Transform class for managing translation, zoom, rotationtypes.ts: TypeScript Typesvector.ts: Vector math functionsViewport.ts: Viewport class for managing view state and converting between Lon/Lat [Îģ,Ī] and Cartesian [x,y] coordinatesSee the CONTRIBUTING.md file for more info.
đ§ŗ Collection of rapid-sdk math libraries