1.1.0 • Published 4 years ago

m3.js v1.1.0

Weekly downloads
7
License
MIT
Repository
github
Last release
4 years ago

m3.js

Travis npm package Coveralls

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
1.1.0

4 years ago

1.0.0

4 years ago

0.1.0

4 years ago