• Efficiently applies scaling to a 4x4 matrix using individual scale factors.

    Parameters

    • x: number

      The scale factor along the x-axis.

    • y: number

      The scale factor along the y-axis.

    • z: number

      The scale factor along the z-axis.

    • m: Mat4

      The matrix to apply the scaling to.

    Returns Mat4

    The matrix with the scaling applied.