Function translationMat4c

Returns a 4x4 translation matrix from x, y, and z components.

  • Parameters

    • x: number

      The translation on the x-axis.

    • y: number

      The translation on the y-axis.

    • z: number

      The translation on the z-axis.

    • dest: Mat4

      Optional destination matrix, if not provided a new matrix will be created.

    Returns Mat4

    The translation matrix.