Class: TranslationRotationScale

TranslationRotationScale

new TranslationRotationScale(translationopt, rotationopt, scaleopt)

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

Members

rotation :Quaternion

Gets or sets the (x, y, z, w) rotation to apply to the node.
Type:
Default Value:
  • Quaternion.IDENTITY
Source:

scale :Cartesian3

Gets or sets the (x, y, z) scaling to apply to the node.
Type:
Default Value:
  • new Cartesian3(1.0, 1.0, 1.0)
Source:

translation :Cartesian3

Gets or sets the (x, y, z) translation to apply to the node.
Type:
Default Value:
  • Cartesian3.ZERO
Source:

Methods

equals(rightopt) → {Boolean}

Compares this instance against the provided instance and returns true if they are equal, false otherwise.
Parameters:
Name Type Attributes Description
right TranslationRotationScale <optional>
The right hand side TranslationRotationScale.
Source:
Returns:
true if they are equal, false otherwise.
Type
Boolean