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.
Description
Transform is a class in the Aspose.3D FOSS library for TypeScript that exposes 10 methods and 14 properties for programmatic use. It extends A3DObject, inheriting shared functionality from its parent type.
Core capabilities include: vector3; vector3; quaternion. These operations enable developers to integrate transform functionality directly into TypeScript applications.
Instances are created through a single constructor that initializes the object with default values.
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 |