RPE Chart Utils
    Preparing search index...

    Function mat3TRS

    • Build a 2D affine transform matrix from translation, rotation, and scale (TRS order). Equivalent to T * R * S.

      Parameters

      • tx: number

        Translation X.

      • ty: number

        Translation Y.

      • angle: number

        Rotation in radians.

      • sx: number

        Scale X.

      • sy: number

        Scale Y.

      Returns Mat3

      const m = mat3TRS(675, 450, Math.PI / 4, 2, 2); // translate to center, rotate 45°, scale 2×