1.0.8 • Published 1 year ago

@infra7/mat3 v1.0.8

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

@infra7/mat3

3x3 Matrix Class

Installation

$ npm i -S @infra7/mat3

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.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago