Protected_Protected_Protected_Protected_Static ReadonlyidentityDetermines the negative Z (backward) axis of the object.
Gets the negative Y (down) axis of the object.
Determines the positive Z (forward) axis of the object.
Builds the inverse transform matrix.
Returns true if the transform has a non-zero skew.
Gets the positive X (left) axis of the object.
Builds the transform matrix from current translation, rotation and scale properties.
Builds the 3x3 upper left transform matrix from rotation, scale and skew.
Gets the negative X (right) axis of the object.
Skew factors in QDU convention: XY, XZ, YZ (vecU from QDUDecomposition). kZero means no skew.
Gets the positive Y (up) axis of the object.
Clones this instance and returns a new Transform with identical values.
Makes the current transform relative to the provided transform and returns the result. In other words, converts from a world coordinate system to one local to the provided transform.
Rotate the object around an arbitrary axis using a Quaternion.
Amount and direction to rotate.
Makes the current transform relative to the provided transform and returns the result. In other words, converts from a world coordinate system to one local to the provided transform.
Makes the current transform absolute and returns the result. In other words, converts from a local coordinate system relative to the provided transform, to a world coordinate system.
Rotate the object around an arbitrary axis using a Quaternion.
Amount and direction to rotate.
Converts the provided world rotation to a space relative to the provided parent, and sets it as the current transform's rotation.
Rotation to set.
Parent relative to which to convert the rotation to.
Returns a string representation of an object.
Staticis
The Transform contains information about 3D object's position, rotation and scale. The class follows the 'copy-on-write' pattern, which means that every operation returns a copy of the transform with updated values. It also implies that the values of the transform cannot be directly modified.
The concept of immutability improves sharing of objects as all types in TypeScript are assigned by identity, instead of by-value (e.g. a copy) as in other programming languages like C.