m3.js

Describe m3.js here


Keywords
WebGL, m3
License
MIT
Install
npm install m3.js@1.1.0

Documentation

m3.js

Travis npm package Coveralls

Origin from https://webglfundamentals.org/

Install

npm

npm install m3.js

yarn

yarn 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