Build a 2D affine transform matrix from translation, rotation, and scale (TRS order). Equivalent to T * R * S.
T * R * S
Translation X.
Translation Y.
Rotation in radians.
Scale X.
Scale Y.
const m = mat3TRS(675, 450, Math.PI / 4, 2, 2); // translate to center, rotate 45°, scale 2× Copy
const m = mat3TRS(675, 450, Math.PI / 4, 2, 2); // translate to center, rotate 45°, scale 2×
Build a 2D affine transform matrix from translation, rotation, and scale (TRS order). Equivalent to
T * R * S.