multiplyByScale
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);
Content copied to clipboard
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.