{"library":"gl-matrix","type":"library","category":null,"description":"glMatrix is a high-performance JavaScript library for vector and matrix mathematics, specifically optimized for real-time 3D graphics applications like those built with WebGL. It leverages `Float32Array` by default for numerical operations, ensuring maximum performance by minimizing garbage collection and memory overhead. The current stable version is 3.4.4, with releases occurring periodically to address bug fixes, introduce performance improvements, and maintain compatibility with modern JavaScript and TypeScript environments. Key differentiators include its focus on raw speed, a comprehensive set of operations for `vec2`, `vec3`, `vec4`, `mat3`, `mat4`, and `quat` types, and its design to prevent global namespace pollution by using named imports or a single `glMatrix` global object. It also supports cherry-picking individual modules for better tree-shaking.","language":"javascript","status":"active","version":"3.4.4","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install gl-matrix","imports":["import { mat4 } from 'gl-matrix';","import * as vec2 from 'gl-matrix/vec2';","<script src=\"path/to/dist/gl-matrix.js\"></script>\n<script>\n  const matrix = glMatrix.mat4.create();\n</script>","import type { mat4 as Mat4Type } from 'gl-matrix';"]},{"cmd":"yarn add gl-matrix","imports":[]},{"cmd":"pnpm add gl-matrix","imports":[]}],"homepage":"https://glmatrix.net","github":"https://github.com/toji/gl-matrix","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/gl-matrix","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/gl-matrix/compatibility"}}