gl-matrix
Javascript Matrix and Vector library for High Performance 3D web apps
Last updated 3 years ago by toji .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install gl-matrix 
SYNC missed versions from official npm registry.

Fast, flexible vector and matrix math for JavaScript

NPM Version Build Status

glMatrix is a high performance, very flexible library for vector and matrix operations in JavaScript/TypeScript, designed for the needs of realtime 3D graphics APIs like WebGL and WebGPU.

Docs

Documentation is available at https://glmatrix.net/docs/v4/

Using Float64Array

If your use case requires additional precision beyond the default 32-bit floats used by default, you can instead use a 64-bit verions of the library by importing from the f64/ directory of your chosen build type. For example:

import { Vec3 } from './gl-matrix/dist/esm/f64/vec3.js';

If you have a need to mix and match the 64 bit and 32 bit versions, you can do so by importing them as different names:

import { Vec3 as Vec3F32 } from './gl-matrix/dist/esm/vec3.js';
import { Vec3 as Vec3F64 } from './gl-matrix/dist/esm/f64/vec3.js';

All API calls are identical between the two versions, the only difference is the type of TypedArray which the classes extend.

Current Tags

  • 4.0.0-beta.2                                ...           beta (3 years ago)
  • 3.4.4                                ...           latest (a year ago)
  • 3.0.0-0                                ...           next (8 years ago)

28 Versions

  • 3.4.4                                ...           a year ago
  • 4.0.0-beta.2                                ...           3 years ago
  • 4.0.0-beta.1                                ...           4 years ago
  • 3.4.3                                ...           5 years ago
  • 3.4.2 [deprecated]           ...           5 years ago
  • 3.4.1 [deprecated]           ...           5 years ago
  • 3.4.0 [deprecated]           ...           5 years ago
  • 3.3.0                                ...           7 years ago
  • 3.2.1                                ...           7 years ago
  • 3.2.0                                ...           7 years ago
  • 3.1.0                                ...           7 years ago
  • 3.0.0                                ...           8 years ago
  • 3.0.0-0                                ...           8 years ago
  • 2.8.1                                ...           8 years ago
  • 2.7.1                                ...           8 years ago
  • 2.7.0                                ...           8 years ago
  • 2.6.1                                ...           9 years ago
  • 2.6.0                                ...           9 years ago
  • 2.5.1                                ...           9 years ago
  • 2.4.1                                ...           9 years ago
  • 2.4.0                                ...           9 years ago
  • 2.3.2                                ...           11 years ago
  • 2.3.1                                ...           11 years ago
  • 2.3.0                                ...           11 years ago
  • 2.1.0                                ...           13 years ago
  • 2.2.0                                ...           13 years ago
  • 2.2.1                                ...           13 years ago
  • 2.0.0                                ...           14 years ago

© 2010 - cnpmjs.org x YWFE | Home | YWFE