import { type Matrix3x3Helpers } from "https://deno.land/x/canvaseno@v1.0.2/types.ts";
TODO(kjlubick) Make this API return Float32Arrays
Methods
invert(m: Matrix3x3 | number[]): number[] | null
Returns the inverse of the given 3x3 matrix or null if it is not invertible.
mapPoints(m: Matrix3x3 | number[], points: number[]): number[]
Maps the given 2d points according to the given 3x3 matrix.
multiply(...matrices: Array<(Matrix3x3 | number[])>): number[]
Multiplies the provided 3x3 matrices together from left to right.
Returns a new 3x3 matrix representing a scale in the x and y directions.
Returns a new 3x3 matrix representing a scale in the x and y directions.