multiplyByScale

fun multiplyByScale(matrix: Matrix2, scale: Cartesian2, result: Matrix2): Matrix2(source)

Computes the product of a matrix times a (non-uniform) scale, as if the scale were a scale matrix.

// Instead of Matrix2.multiply(m, Matrix2.fromScale(scale), m);
Matrix2.multiplyByScale(m, scale, m);

Return

The modified result parameter.

Parameters

matrix

The matrix on the left-hand side.

scale

The non-uniform scale on the right-hand side.

result

The object onto which to store the result.

See also