multiplyByUniformScale

fun multiplyByUniformScale(matrix: Matrix3, scale: Double, result: Matrix3): Matrix3(source)

Computes the product of a matrix times a uniform scale, as if the scale were a scale matrix.

// Instead of Matrix3.multiply(m, Matrix3.fromUniformScale(scale), m);
Matrix3.multiplyByUniformScale(m, scale, m);

Return

The modified result parameter.

Parameters

matrix

The matrix on the left-hand side.

scale

The uniform scale on the right-hand side.

result

The object onto which to store the result.

See also