A 3x3 matrix represented as a flat Float64Array of 9 elements in row-major order.
Used for 2D affine transformations. Access element at row r, column c via m[r*3+c].
Example
// Translate a point by (100, 50), then rotate 45° import { mat3TRS, mat3TransformVec2, degToRad, vec2 } from'./math'; constm = mat3TRS(100, 50, degToRad(45), 1, 1); constp = mat3TransformVec2(m, vec2(10, 0));
A 3x3 matrix represented as a flat
Float64Arrayof 9 elements in row-major order. Used for 2D affine transformations. Access element at rowr, columncviam[r*3+c].