You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
hanyuqing 1ff6b4a3ae 22 4 months ago
..
cjs 22 4 months ago
esm 22 4 months ago
mat2 22 4 months ago
mat2d 22 4 months ago
mat3 22 4 months ago
mat4 22 4 months ago
quat 22 4 months ago
quat2 22 4 months ago
types.d.ts 22 4 months ago
vec2 22 4 months ago
vec3 22 4 months ago
vec4 22 4 months ago
LICENSE.md 22 4 months ago
README.md 22 4 months ago
gl-matrix-min.js 22 4 months ago
gl-matrix.js 22 4 months ago
index.d.ts 22 4 months ago
package.json 22 4 months ago

README.md

glMatrix

NPM Version Build Status

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 browser's JavaScript engine.

Learn More

For documentation and news, visit the glMatrix Homepage

For a tutorial, see the "Introducing glMatrix" section of Introduction to Computer Graphics by David J. Eck

For a babel plugin to make writing the API nicer, see babel-plugin-transform-gl-matrix

Regarding the current performance in modern web browsers, calling glMatrix.setMatrixArrayType(Array) to use normal arrays instead of Float32Arrays can greatly increase the performance.

Contributing Guidelines

See CONTRIBUTING.md

Building

See BUILDING.md