Function setTrslV

  • 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 a (see mulV)

    Parameters

    • m: Mat4

      a 4x4 matrix object

    • a: Vec3

      a 3-element vector specifying the amount of translation

    Returns Mat4

    m set to be a 3D translation matrix

Generated using TypeDoc