Transform

Overview

Transform is a class in Aspose.3D FOSS for TypeScript. Inherits from: A3DObject.

Transform.setEulerAngles(rx, ry, rz) returns the same Transform instance, allowing method chaining.

This class declares 15 methods for Transform objects in TypeScript programs. Available methods include: constructor, findProperty, getProperty, removeProperty, setEulerAngles, setGeometricRotation, setGeometricScaling, setGeometricTranslation, setPostRotation, setPreRotation, setProperty, setRotation, and 3 additional methods. Public members are accessible to any TypeScript application after installing the Aspose.3D FOSS for TypeScript package. Properties: eulerAngles, geometricRotation, geometricScaling, geometricTranslation, name, postRotation, and 10 more.

Properties

NameTypeAccessDescription
translationVector3Read/WriteGets the translation.
scalingVector3Read/WriteGets the scaling.
rotationQuaternionRead/WriteGets the rotation.
eulerAnglesVector3Read/WriteGets the euler angles.
scalingOffsetVector3Read/WriteGets the scaling offset.
scalingPivotVector3Read/WriteGets the scaling pivot.
rotationOffsetVector3Read/WriteGets the rotation offset.
rotationPivotVector3Read/WriteGets the rotation pivot.
preRotationVector3Read/WriteGets the pre rotation.
postRotationVector3Read/WriteGets the post rotation.
geometricTranslationVector3Read/WriteGets the geometric translation.
geometricScalingVector3Read/WriteGets the geometric scaling.
geometricRotationVector3Read/WriteGets the geometric rotation.
transformMatrixMatrix4Read/WriteGets the transform matrix.
namestringRead/WriteGets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
constructor(name: string)Creates a Transform instance identified by the given name
setTranslation(tx: number, ty: number, tz: number)TransformSets the translation value.
setScale(sx: number, sy: number, sz: number)TransformSets the scale value.
setEulerAngles(rx: number, ry: number, rz: number)TransformSets the euler angles value.
setRotation(rw: number, rx: number, ry: number, rz: number)TransformSets the rotation value.
setPreRotation(rx: number, ry: number, rz: number)TransformSets the pre rotation value.
setPostRotation(rx: number, ry: number, rz: number)TransformSets the post rotation value.
setGeometricTranslation(x: number, y: number, z: number)TransformSets the geometric translation value.
setGeometricScaling(sx: number, sy: number, sz: number)TransformSets the geometric scaling value.
setGeometricRotation(rx: number, ry: number, rz: number)TransformSets the geometric rotation value.
toString()stringCalls toString on this Transform instance.
findProperty(propertyName: string)Property | nullCalls findProperty(propertyName) on this Transform instance.
getProperty(property: string)anyCalls getProperty(property) on this Transform instance.
setProperty(property: string, value: any)Sets the property value.
removeProperty(property: string | Property)booleanCalls removeProperty(property) on this Transform instance.

See Also

 English