Skip to content

Latest commit

 

History

History

math

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

npm version

@rapid-sdk/math

🔢 Collection of rapid-sdk math libraries

Installing

npm install @rapid-sdk/math

This library is distributed in ESM format only. It cannot be require()'d from CommonJS. For more, please read Sindre Sorhus’s FAQ.

import { Extent } from '@rapid-sdk/math';

Packages

  • ⭐️ Math Constants

  • 🌐 Geographic (spherical) math functions

  • 📈 Geometric (planar) math functions

  • 🔢 Number math functions

  • 📐 Vector math functions

  • 📦 Extent class for working with bounding boxes

  • 🀄️ Tiler class for splitting the world into rectangular tiles

  • 🕹️ Transform class for managing translation, scale, rotation

  • 📺 Viewport class for managing view state and converting between Lon/Lat (λ,φ) and Cartesian (x,y) coordinates

Contributing

This project is just getting started! 🌱

We're not able to support external contributors at this time, but check back in a bit when things have matured.