@infra7/matrix
v1.0.10
Published
High performance matrix and vector library.
Downloads
4
Readme
@infra7/matrix
High performance matrix and vector library.
Installation
$ npm i -S @infra7/matrix
Examples
import { Mat3 } from 'mat3';
const mat = Mat3.Multiply([
Mat3.FromScaling([2, 1], [100, 50]),
Mat3.FromRotation(Math.PI / 2, [100, 50]),
]);
mat.mul(Mat3.FromTranslation([-100, 100]));
mat.mulLeft(Mat3.FromTranslation([100, -100]));
mat.transpose();
mat.invert();
console.log(mat.data);