Overview
Library overview
Math for the shape of the world.
From matrices to coordinate systems and planetary geometry. Composable tools for the world you are building.
math.gl is an Open Visualization, OpenJS Foundation and Linux Foundation project.
npm packages
These packages export subpaths for different features. See each package’s documentation for the full list.
| Package | Description |
|---|---|
@math.gl/core | Vectors, matrices, and quaternions for 3D math, along with color, UTF-8, and Apache Arrow utilities. |
@math.gl/geometry | Geometry primitives and mesh operations for tessellation, spatial queries, and visibility testing. |
@math.gl/geospatial | Coordinate systems and map projections, terrain sampling, and tools for processing geospatial data. |
@math.gl/earth | Tools for calculating sunlight and star positions, looking up time zones, and modeling the geoid and oceans. |
@math.gl/dggs | Decodes and indexes cells in discrete global grids. |
@math.gl/sql | An optimized SQL parser and engine that works directly on Apache Arrow tables. |
@math.gl/tasks | Runs heavy computations on worker threads. |
Supported Browsers and Node Versions
math.gl is fully supported on:
- Evergreen browsers: Recent versions of Chrome, Safari, Firefox, Edge etc.
- Node.js: Active and Maintenance LTS releases
History
| Year | Version | Description |
|---|---|---|
| 2026 | v5.0 | A new projection engine, global grid adapters, WKB and GeoArrow geometry processing, and Earth utilities, organized into focused package entry points. See what’s new. |
| 2023 | v4.0 | gl-matrix dropped 64-bit support and was replaced with adapted numerical kernels. |
| 2022 | v3.6 | Code base fully rewritten in TypeScript. |
| 2020+ | v3.x | Additional geospatial modules were added based on needs from the luma.gl and deck.gl community. |
| 2019 | v3.0 | A collaboration with the Cesium team around 3D Tiles support introduced the math.gl/geospatial and @math.gl/geometry/culling modules. |
| 2018 | v2.0 | API stabilization. |
| 2017 | v1.0 | math.gl got its own repository to provide an independently usable set of 3D and Geospatial math modules. |
| 2015 | N/A | The math.gl matrix library (@math.gl/core/matrix) started as a set of class wrappers for gl-matrix inside luma.gl. |
Attributions
See Attributions for contributor acknowledgments, upstream libraries, scientific references, dataset credits, and third-party notices.
License
math.gl is released under the MIT License. Some modules include upstream code under other permissive licenses such as Apache-2.0 or ISC and retain the original license notices.
Optional datasets may have their own licenses. See Attribution and the notices included with each dataset.