multiplyByScale

fun multiplyByScale(matrix: Matrix3, scale: Cartesian3, result: Matrix3): Matrix3(source)

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

// Instead of Matrix3.multiply(m, Matrix3.fromScale(scale), m);
Matrix3.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