fromTranslationQuaternionRotationScale

fun fromTranslationQuaternionRotationScale(translation: Cartesian3, rotation: Quaternion, scale: Cartesian3, result: Matrix4? = definedExternally): Matrix4(source)

Computes a Matrix4 instance from a translation, rotation, and scale (TRS) representation with the rotation represented as a quaternion.

const result = Matrix4.fromTranslationQuaternionRotationScale(
new Cartesian3(1.0, 2.0, 3.0), // translation
Quaternion.IDENTITY, // rotation
new Cartesian3(7.0, 8.0, 9.0), // scale
result);

Return

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

Parameters

translation

The translation transformation.

rotation

The rotation transformation.

scale

The non-uniform scale transformation.

result

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

See also