Transform
Overview
Transform is a class in Aspose.3D FOSS for Java.
Inherits from: A3DObject.
The Transform class lets developers define translation, scaling, and rotation using vectors, quaternions, or Euler angles.
This class provides 46 methods for working with Transform objects in Java programs.
Available methods include: Transform, findProperty, getEulerAngles, getGeometricRotation, getGeometricScaling, getGeometricTranslation, getName, getPostRotation, getPreRotation, getProperties, getProperty, getRotation, and 25 additional methods.
All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package.
Properties: eulerAngles, geometricRotation, geometricScaling, geometricTranslation, name, postRotation, and 10 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
translation | Vector3 | Read | Gets the translation. |
scaling | Vector3 | Read | Gets the scaling. |
eulerAngles | Vector3 | Read | Gets the euler angles. |
rotation | Quaternion | Read | Gets the rotation. |
preRotation | Vector3 | Read | Gets the pre rotation. |
postRotation | Vector3 | Read | Gets the post rotation. |
geometricTranslation | Vector3 | Read | Gets the geometric translation. |
geometricScaling | Vector3 | Read | Gets the geometric scaling. |
geometricRotation | Vector3 | Read | Gets the geometric rotation. |
scalingOffset | Vector3 | Read | Gets the scaling offset. |
scalingPivot | Vector3 | Read | Gets the scaling pivot. |
rotationOffset | Vector3 | Read | Gets the rotation offset. |
rotationPivot | Vector3 | Read | Gets the rotation pivot. |
transformMatrix | Matrix4 | Read | Gets the transform matrix. |
name | String | Read | Gets the name. |
properties | PropertyCollection | Read | Gets the properties. |
Methods
| Signature | Description |
|---|---|
Transform() | Calls Transform on this Transform instance. |
Transform(name: String) | Calls Transform(name) on this Transform instance. |
getTranslation() → Vector3 | Returns the translation. |
setTranslation(value: Vector3) | Sets the translation value. |
setTranslation(x: double, y: double, z: double) → Transform | Sets the translation value. |
getScaling() → Vector3 | Returns the scaling. |
setScaling(value: Vector3) | Sets the scaling value. |
setScale(x: double, y: double, z: double) → Transform | Sets the scale value. |
getEulerAngles() → Vector3 | Returns the euler angles. |
setEulerAngles(value: Vector3) | Sets the euler angles value. |
setEulerAngles(x: double, y: double, z: double) → Transform | Sets the euler angles value. |
getRotation() → Quaternion | Returns the rotation. |
setRotation(value: Quaternion) | Sets the rotation value. |
setRotation(x: double, y: double, z: double, w: double) → Transform | Sets the rotation value. |
setPreRotation(x: double, y: double, z: double) → Transform | Sets the pre rotation value. |
getPreRotation() → Vector3 | Returns the pre rotation. |
setPreRotation(value: Vector3) | Sets the pre rotation value. |
setPostRotation(x: double, y: double, z: double) → Transform | Sets the post rotation value. |
getPostRotation() → Vector3 | Returns the post rotation. |
setPostRotation(value: Vector3) | Sets the post rotation value. |
getGeometricTranslation() → Vector3 | Returns the geometric translation. |
setGeometricTranslation(value: Vector3) | Sets the geometric translation value. |
setGeometricTranslation(x: double, y: double, z: double) → Transform | Sets the geometric translation value. |
getGeometricScaling() → Vector3 | Returns the geometric scaling. |
setGeometricScaling(value: Vector3) | Sets the geometric scaling value. |
setGeometricScaling(x: double, y: double, z: double) → Transform | Sets the geometric scaling value. |
getGeometricRotation() → Vector3 | Returns the geometric rotation. |
setGeometricRotation(value: Vector3) | Sets the geometric rotation value. |
setGeometricRotation(x: double, y: double, z: double) → Transform | Sets the geometric rotation value. |
getScalingOffset() → Vector3 | Returns the scaling offset. |
setScalingOffset(value: Vector3) | Sets the scaling offset value. |
getScalingPivot() → Vector3 | Returns the scaling pivot. |
setScalingPivot(value: Vector3) | Sets the scaling pivot value. |
getRotationOffset() → Vector3 | Returns the rotation offset. |
setRotationOffset(value: Vector3) | Sets the rotation offset value. |
getRotationPivot() → Vector3 | Returns the rotation pivot. |
setRotationPivot(value: Vector3) | Sets the rotation pivot value. |
getTransformMatrix() → Matrix4 | Returns the transform matrix. |
setTransformMatrix(value: Matrix4) | Sets the transform matrix value. |
getName() → String | Returns the name. |
setName(name: String) | Sets the name value. |
getProperties() → PropertyCollection | Returns the properties. |
findProperty(name: String) → Property | Calls findProperty(name) on this Transform instance. |
getProperty(name: String) → Object | Calls getProperty(name) on this Transform instance. |
setProperty(name: String, value: Object) | Sets the property value. |
removeProperty(name: String) → boolean | Calls removeProperty(name) on this Transform instance. |