setUniformScale

fun setUniformScale(matrix: Matrix4, scale: Double, result: Matrix4): Matrix4(source)

Computes a new matrix that replaces the scale with the provided uniform scale. This assumes the matrix is an affine transformation.

Return

The modified result parameter.

Parameters

matrix

The matrix to use.

scale

The uniform scale that replaces the scale of the provided matrix.

result

The object onto which to store the result.

See also