Function scale

  • Scales the given 3-by-3 matrix in each dimension by an amount given by the corresponding entry in the given vector; assumes the vector has three entries.

    Parameters

    • m: Mat3

      The matrix to be modified.

    • v: Vec2

      A vector of 2 entries specifying the factor by which to scale in each dimension.

    • Optional dst: Mat3

      matrix to hold result. If not passed a new one is created.

    Returns Mat3

    The scaled matrix.