Javascript Matrix and Vector library for High Performance WebGL apps (Mapbox custom build)
$ cnpm install @mapbox/gl-matrix
This is a fork of gl-matrix with the following changes:
common.js.equals (not useful enough to justify the bloat) and renamed exactEquals to equals.Javascript has evolved into a language capable of handling realtime 3D graphics, via WebGL, and computationally intensive tasks such as physics simulations. These types of applications demand high performance vector and matrix math, which is something that Javascript doesn't provide by default. glMatrix to the rescue!
glMatrix is designed to perform vector and matrix operations stupidly fast! By hand-tuning each function for maximum performance and encouraging efficient usage patterns through API conventions, glMatrix will help you get the most out of your browsers Javascript engine.
For documentation, news, tutorials, and more visit the glMatrix Homepage
Contributions are welcome! Please provide unit tests for new functionality.
The unit tests are built upon the following tools:
jasmine-node packageTo run the unit tests run the following command:
npm run test
To build gl-matrix.js and gl-matrix-min.js for use in the browser install
the required NPM dependencies first by running
npm install
from the this directory, then run the following command:
npm run build-all
This will build the full and minified versions of glMatrix as well as the docs.
Copyright 2013 - present © cnpmjs.org | Home |