Function setTrsl

  • Sets the elements of the 4x4 matrix m so it becomes a 3D translation matrix.

    Multiplying the resulting matrix by a column vector will translate the given vector by [ tx ty tz ] (see mulV)

    Parameters

    • m: Mat4

      a 4x4 matrix object

    • tx: number

      the amount of translation along the x-axis

    • ty: number

      the amount of translation along the y-axis

    • tz: number

      the amount of translation along the z-axis

    Returns Mat4

    m set to be a 3D translation matrix

Generated using TypeDoc