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

    Function setTrsl

    • Sets the elements of the 3x3 matrix m so it becomes a 2D translation matrix.

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

      Parameters

      • m: Mat3

        a 3x3 matrix object

      • tx: number

        the amount of translation along the x-axis

      • ty: number

        the amount of translation along the y-axis

      Returns Mat3

      m set to be a 2D translation matrix