MCPcopy Index your code
hub / github.com/toji/gl-matrix

github.com/toji/gl-matrix @v3.4.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.4.4 ↗ · + Follow
370 symbols 491 edges 36 files 7 documented · 2% 23 cross-repo links updated 2d agov3.4.4 · 2025-08-08★ 5,67772 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 341
Method 26
Class 2
Interface 1

Languages

TypeScript100%

Modules by API surface

src/mat4.js48 symbols
docs/v4/assets/main.js48 symbols
src/vec3.js41 symbols
src/vec2.js38 symbols
src/vec4.js33 symbols
src/quat2.js31 symbols
src/mat3.js30 symbols
src/mat2.js24 symbols
src/mat2d.js23 symbols
src/quat.js21 symbols
docs/scripts/prettify/prettify.js14 symbols
jsdoc-template/publish.js10 symbols

Dependencies from manifests, versioned

@babel/cli7.14.3 · 1×
@babel/core7.14.3 · 1×
@babel/preset-env7.14.3 · 1×
@babel/register7.13.16 · 1×
@rollup/plugin-babel5.3.0 · 1×
del-cli3.0.0 · 1×
jsdoc3.6.7 · 1×
mocha8.4.0 · 1×
node-libs-browser2.2.1 · 1×
rollup2.50.5 · 1×
rollup-plugin-size-snapshot0.12.0 · 1×
rollup-plugin-terser7.0.2 · 1×

For agents

$ claude mcp add gl-matrix \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page