fromTranslation

fun fromTranslation(translation: Cartesian3, result: Matrix4? = definedExternally): Matrix4(source)

Creates a Matrix4 instance from a Cartesian3 representing the translation.

Return

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

Parameters

translation

The upper right portion of the matrix representing the translation.

result

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

See also