Returns a 4x4 scale matrix.

  • 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.

    • Optionaldest: Mat4

      An optional matrix to store the result. Defaults to a new matrix.

    Returns Mat4

    The resulting 4x4 scale matrix.