TranslationRotationScale

new Cesium.TranslationRotationScale(translation, rotation, scale)

An affine transformation defined by a translation, rotation, and scale.
Name Type Default Description
translation Cartesian3 Cartesian3.ZERO optional A Cartesian3 specifying the (x, y, z) translation to apply to the node.
rotation Quaternion Quaternion.IDENTITY optional A Quaternion specifying the (x, y, z, w) rotation to apply to the node.
scale Cartesian3 new Cartesian3(1.0, 1.0, 1.0) optional A Cartesian3 specifying the (x, y, z) scaling to apply to the node.

Members

Gets or sets the (x, y, z, w) rotation to apply to the node.
Default Value: Quaternion.IDENTITY
Gets or sets the (x, y, z) scaling to apply to the node.
Default Value: new Cartesian3(1.0, 1.0, 1.0)
Gets or sets the (x, y, z) translation to apply to the node.
Default Value: Cartesian3.ZERO

Methods

Compares this instance against the provided instance and returns true if they are equal, false otherwise.
Name Type Description
right TranslationRotationScale optional The right hand side TranslationRotationScale.
Returns:
true if they are equal, false otherwise.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.