fun setTranslation(result: ZMatrix4, translation: ZVector3)(source)

Sets the translation component of a matrix using the specified translation vector.

Parameters

result

The matrix in which the translation component will be set.

translation

The vector defining the translation to apply.


fun setTranslation(result: ZMatrix4, x: Float, y: Float, z: Float)(source)

Sets the translation components of the provided 4x4 matrix to the specified x, y, and z values.

Parameters

result

The ZMatrix4 instance where the translation will be set.

x

The translation distance along the x-axis.

y

The translation distance along the y-axis.

z

The translation distance along the z-axis.