@sstorsveen/maths - v2.0.1
    Preparing search index...

    Function setInvTrslV

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

      Parameters

      • m: Mat4

        a 4x4 matrix object

      • a: Vec3

        a 3-element vector specifying the (inverse) amount of translation

      Returns Mat4

      m set to be a 3D translation matrix