fromRotationTranslation

fun fromRotationTranslation(rotation: Matrix3, translation: Cartesian3? = definedExternally, result: Matrix4? = definedExternally): Matrix4(source)

Computes a Matrix4 instance from a Matrix3 representing the rotation and a Cartesian3 representing the translation.

Return

The modified result parameter, or a new Matrix4 instance if one was not provided.

Parameters

rotation

The upper left portion of the matrix representing the rotation.

translation

The upper right portion of the matrix representing the translation. Default value - Cartesian3.ZERO

result

The object in which the result will be stored, if undefined a new instance will be created.

See also