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
| Name | Type | Access | Description |
|---|---|---|---|
translation | Vector3 | Read/Write | Gets the translation. |
scaling | Vector3 | Read/Write | Gets the scaling. |
rotation | Quaternion | Read/Write | Gets the rotation. |
eulerAngles | Vector3 | Read/Write | Gets the euler angles. |
scalingOffset | Vector3 | Read/Write | Gets the scaling offset. |
scalingPivot | Vector3 | Read/Write | Gets the scaling pivot. |
rotationOffset | Vector3 | Read/Write | Gets the rotation offset. |
rotationPivot | Vector3 | Read/Write | Gets the rotation pivot. |
preRotation | Vector3 | Read/Write | Gets the pre rotation. |
postRotation | Vector3 | Read/Write | Gets the post rotation. |
geometricTranslation | Vector3 | Read/Write | Gets the geometric translation. |
geometricScaling | Vector3 | Read/Write | Gets the geometric scaling. |
geometricRotation | Vector3 | Read/Write | Gets the geometric rotation. |
transformMatrix | Matrix4 | Read/Write | Gets the transform matrix. |
name | string | Read/Write | Gets the name. |
properties | PropertyCollection | Read | Gets the properties. |
Methods
| Signature | Description |
|---|---|
constructor(name: string) | Creates a Transform instance identified by the given name |
setTranslation(tx: number, ty: number, tz: number) → Transform | Sets the translation value. |
setScale(sx: number, sy: number, sz: number) → Transform | Sets the scale value. |
setEulerAngles(rx: number, ry: number, rz: number) → Transform | Sets the euler angles value. |
setRotation(rw: number, rx: number, ry: number, rz: number) → Transform | Sets the rotation value. |
setPreRotation(rx: number, ry: number, rz: number) → Transform | Sets the pre rotation value. |
setPostRotation(rx: number, ry: number, rz: number) → Transform | Sets the post rotation value. |
setGeometricTranslation(x: number, y: number, z: number) → Transform | Sets the geometric translation value. |
setGeometricScaling(sx: number, sy: number, sz: number) → Transform | Sets the geometric scaling value. |
setGeometricRotation(rx: number, ry: number, rz: number) → Transform | Sets the geometric rotation value. |
toString() → string | Calls toString on this Transform instance. |
findProperty(propertyName: string) → Property | null | Calls findProperty(propertyName) on this Transform instance. |
getProperty(property: string) → any | Calls getProperty(property) on this Transform instance. |
setProperty(property: string, value: any) | Sets the property value. |
removeProperty(property: string | Property) → boolean | Calls removeProperty(property) on this Transform instance. |