@id-sdk/math

Collection of iD-sdk math libraries

Usage no npm install needed!

<script type="module">
  import idSdkMath from 'https://cdn.skypack.dev/@id-sdk/math';
</script>

README

npm version

@id-sdk/math

πŸ”’ Collection of iD-sdk math libraries

Installing

npm install @id-sdk/math

This package contains a re-export of the iD-sdk math subpackages.

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 '@id-sdk/math';

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.

Packages

math

Module Description
@id-sdk/extent πŸ“¦ Extent class for creating bounding boxes
@id-sdk/geo 🌐 Geographic (spherical) math functions
@id-sdk/geom πŸ“ˆ Geometric (planar) math functions
@id-sdk/projection πŸ“½ Projection class for converting between Lon/Lat (Ξ»,Ο†) and Cartesian (x,y) coordinates
@id-sdk/tiler πŸ€„οΈ Tiler class for splitting the world into rectangular tiles
@id-sdk/vector πŸ“ Vector (coordinate) math functions
--- ---
@id-sdk/math πŸ”’ All of the above in one convenient package