UNPKG

818 BTypeScriptView Raw
1import { VectorArray } from './vector';
2export declare type MatrixArray = number[];
3export declare function create(): MatrixArray;
4export declare function identity(out: MatrixArray): MatrixArray;
5export declare function copy(out: MatrixArray, m: MatrixArray): MatrixArray;
6export declare function mul(out: MatrixArray, m1: MatrixArray, m2: MatrixArray): MatrixArray;
7export declare function translate(out: MatrixArray, a: MatrixArray, v: VectorArray): MatrixArray;
8export declare function rotate(out: MatrixArray, a: MatrixArray, rad: number, pivot?: VectorArray): MatrixArray;
9export declare function scale(out: MatrixArray, a: MatrixArray, v: VectorArray): MatrixArray;
10export declare function invert(out: MatrixArray, a: MatrixArray): MatrixArray | null;
11export declare function clone(a: MatrixArray): MatrixArray;