setTranslation

fun setTranslation(matrix: Matrix4, translation: Cartesian3, result: Matrix4): Matrix4(source)

Computes a new matrix that replaces the translation in the rightmost column of the provided matrix with the provided translation. This assumes the matrix is an affine transformation.

Return

The modified result parameter.

Parameters

matrix

The matrix to use.

translation

The translation that replaces the translation of the provided matrix.

result

The object onto which to store the result.

See also