API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classMatrix
Mutable 3×3 row-major affine transformation matrix used throughout the rendering and physics pipeline. Layout (row, column): ``` | a b x | | c d y | | e f z | ``` `a`/`d` are the X/Y scale + rotation cosines, `b`/`c` are the shear/rotation sines, `x`/`y` are the translation components, and `e`/`f`/`z` are the homogeneous row (typically `0, 0, 1`). All mutating methods return `this` for chaining. `Matrix.temp` is a shared scratch instance. `Matrix.identity` is a read-only identity constant.
import { Matrix } from '@codexo/exojs'Mutable 3×3 row-major affine transformation matrix used throughout the rendering and physics pipeline.
Layout (row, column): ``` | a b x | | c d y | | e f z | ``` `a`/`d` are the X/Y scale + rotation cosines, `b`/`c` are the shear/rotation sines, `x`/`y` are the translation components, and `e`/`f`/`z` are the homogeneous row (typically `0, 0, 1`).
All mutating methods return `this` for chaining. `Matrix.temp` is a shared scratch instance. `Matrix.identity` is a read-only identity constant.
new(a: number, b: number, x: number, c: number, d: number, y: number, e: number, f: number, z: number): Matrixclone(): thiscombine(matrix: Matrix): thiscopy(matrix: Matrix): thisdestroy(): voidequals(__namedParameters: Partial<Matrix>): booleangetInverse(result: Matrix): Matrixrotate(angle: number, centerX: number, centerY: number): thisscale(scaleX: number, scaleY: number, centerX: number, centerY: number): thisset(a: number, b: number, x: number, c: number, d: number, y: number, e: number, f: number, z: number): thistoArray(transpose: boolean): Float32Arraytranslate(x: number, y: number): thisa: numberb: numberc: numberd: numbere: numberf: numberx: numbery: numberz: numberidentity: Matrixtemp: Matrix