1.0.10 • Published 1 year ago

@infra7/matrix v1.0.10

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

@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);
1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago