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

    Function setScaleTrsl

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

      Multiplying the resulting matrix by a column vector will scale the given vector by a and translate it by b (see mulV)

      Parameters

      • m: Mat4

        a 4x4 matrix object

      • a: Vec3

        a 3-element vector specifying the scaling factors

      • b: Vec3

        a 3-element vector specifying the amount of translation

      Returns Mat4

      m set to be a 3D transformation matrix