Function setScaleTrsl

  • Sets the elements of the 3x3 matrix m so it becomes a 2D 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: Mat3

      a 3x3 matrix object

    • a: Vec2

      a 2-element vector specifying the scaling factors

    • b: Vec2

      a 2-element vector specifying the amount of translation

    Returns Mat3

    m set to be a 2D transformation matrix

Generated using TypeDoc