While the math.gl is highly optimized for use with the WebGL and WebGPU APIs, math.gl itself has no WebGL dependencies.
math.gl is a toolbox that offers a suite of composable modules.
|Basic 3D math classes (vectors, matrices, etc)|
|Bounding volumes and intersection testing.|
|Ellipsoidal math for WGS84 coordinates.|
|Earth Gravity Model support .|
|Polygon math, including geospatial cutting etc.|
|Conversion between coordinate reference systems.|
|Solar position / direction from position and time.|
|Supports 3D Web Mercator (spherical) projections.|
|Re-exports the API from |
|Re-exports the Web Mercator projection utilities in |
math.gl is fully supported on:
Note that Internet Explorer < 10 will not work. If your application needs to support older browsers, an option could be to use
gl-matrix- math.gl classes use gl-matrix under the hood
MIT license. The libraries that the core
math.gl module are built on (e.g. gl-matrix) are also all open source and MIT licensed.
@math.gl/culling modules include Cesium-derived code which is Apache2 licensed.
math.gl will never include any code that is not under permissive license.