Skip to content

Commit

Permalink
feat(matrices): add MatXXLike type aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Mar 29, 2019
1 parent 1936d35 commit a2ace9f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/matrices/src/api.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import { Vec, ReadonlyVec, IVector, MultiVecOp } from "@thi.ng/vectors";
import { Tuple, TypedArray } from "@thi.ng/api";
import { IVector, MultiVecOp, ReadonlyVec, Vec } from "@thi.ng/vectors";

export type Mat = Vec;
export type ReadonlyMat = ReadonlyVec;

export type Mat22Like = Tuple<number, 4> | TypedArray;
export type Mat23Like = Tuple<number, 6> | TypedArray;
export type Mat33Like = Tuple<number, 9> | TypedArray;
export type Mat44Like = Tuple<number, 16> | TypedArray;

export type IMatrix<T> = IVector<T>;
export type MultiMatOp<T> = MultiVecOp<T>;

Expand Down

0 comments on commit a2ace9f

Please sign in to comment.