matrix.d.ts 797 B

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