m3.js
v1.1.0
Published
Describe m3.js here
Downloads
6
Readme
m3.js
Origin from https://webglfundamentals.org/
Install
npm
npm install m3.js
yarn
yanr add m3.js
How to use
// Quick example
import * as m3 from 'm3.js';
// ...
// Compute the matrices
var projectionMatrix = m3.projection(gl.canvas.width, gl.canvas.height);
OR
// Quick example
import { projection } from 'm3.js';
// ...
// Compute the matrices
var projectionMatrix = projection(gl.canvas.width, gl.canvas.height);
Methods
✔ degToRad
✔ distance
✔ dot
✔ identity
✔ inverse
✔ multiply
✔ normalize
✔ projection
✔ radToDeg
✔ reflect
✔ rotation
✔ rotate
✔ scaling
✔ scale
✔ transformPoint
✔ translation
✔ translate
✔ project