Welcome to! is JavaScript math library focused on geospatial and 3D use cases, designed as a composable, modular toolbox. provides a core module with classic vector and matrix classes, and a suite of optional modules implementing various aspects of geospatial and 3D math.

While the is highly optimized for use with the WebGL and WebGPU APIs, itself has no WebGL dependencies.

Modules is a toolbox that offers a suite of composable modules.

core 3D math classes (vectors, matrices, etc)
culling volumes and intersection testing. math for WGS84 coordinates.
geoid Gravity Model support . math, including geospatial cutting etc. between coordinate reference systems. position / direction from position and time. 3D Web Mercator (spherical) projections.

In addition, provides a few deprecated legacy modules, to avoid breaking older applications.

Legacy ModuleDescription
math.glRe-exports the API from An "alias" for to avoid breaking old applications.
viewport-mercator-projectRe-exports the Web Mercator projection utilities in The viewport-mercator-project repository was moved to in Oct 2019.

Supported Browsers and Node Versions is fully supported on:

  • Evergreen browsers: Recent versions of Chrome, Safari, Firefox, Edge etc.
  • Node.js: Active and Maintenance LTS releases
  • IE11: Supported (with certain performance caveats) using's fully transpiled es5 distribution and @babel/polyfills.

Note that Internet Explorer < 10 will not work. If your application needs to support older browsers, an option could be to use gl-matrix directly.


  • The core classes were originally developed as part of v4 to provide a basic 3D math library for the and frameworks.
  • was then broken out into its own module to allow it to mature in terms of functionality and stability and make it a proper home for additional 3D and Geospatial modules.
  • parts of the Cesium math library were ported and published as independently usable modules (the geospatial and culling modules). This was a collaboration with the Cesium team around 3D Tiles support in,
  • Additional geospatial modules have gradually been added to support more advanced use cases for

Attributions was inspired by and built upon some of the most proven open source JavaScript math libraries:

  • gl-matrix - classes use gl-matrix under the hood
  • THREE.js math library - classes are API-compatible with a subset of the THREE.js classes and pass THREE.js test suites.
  • The CesiumJS math library (Apache2) - The geospatial and culling modules were ported from Cesium code base.


MIT license. The libraries that the core module are built on (e.g. gl-matrix) are also all open source and MIT licensed.

The and modules include Cesium-derived code which is Apache2 licensed. will never include any code that is not under permissive license.