m3.js

1.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i m3.js

Weekly Downloads

4

Version

1.1.0

License

MIT

Unpacked Size

70.3 kB

Total Files

9

Last publish

Collaborators

  • fi1osof