Transform
Overview
Transform is a class in Aspose.3D FOSS for Typescript.
Inherits from: A3DObject.
Transform.constructor creates a Transform instance identified by the given name.
This class provides 11 methods for working with Transform objects in Typescript programs.
Available methods include: constructor, setEulerAngles, setGeometricRotation, setGeometricScaling, setGeometricTranslation, setPostRotation, setPreRotation, setRotation, setScale, setTranslation, toString.
All public members are accessible to any Typescript application after installing the Aspose.3D FOSS for Typescript package.
Properties: eulerAngles, geometricRotation, geometricScaling, geometricTranslation, postRotation, preRotation, and 8 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. |
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 |