Transform

Overview

Transform is a class in Aspose.3D FOSS for .NET. Inherits from: A3DObject, INamedObject.

A transform contains information that allow access to object’s translate/scale/rotation or transform matrix at minimum cost This is used by local transform.

This class provides 14 methods for working with Transform objects in .NET programs. Available methods include: A3DObject, FindProperty, GetProperty, RemoveProperty, SetEulerAngles, SetGeometricRotation, SetGeometricScaling, SetGeometricTranslation, SetPostRotation, SetPreRotation, SetProperty, SetRotation, and 2 additional methods. All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package. Properties: EulerAngles, GeometricRotation, GeometricScaling, GeometricTranslation, Name, PostRotation, and 10 more.

Properties

NameTypeAccessDescription
TranslationVector3Read/WriteGets or sets the translation
ScalingVector3Read/WriteGets or sets the scaling
ScalingOffsetVector3Read/WriteGets or sets the scaling offset
ScalingPivotVector3Read/WriteGets or sets the scaling pivot
PreRotationVector3Read/WriteGets or sets the pre-rotation represented in degree
RotationOffsetVector3Read/WriteGets or sets the rotation offset
RotationPivotVector3Read/WriteGets or sets the rotation pivot
PostRotationVector3Read/WriteGets or sets the post-rotation represented in degree
EulerAnglesVector3Read/WriteGets or sets the rotation represented in Euler angles, measured in degree
RotationQuaternionRead/WriteGets or sets the rotation represented in quaternion.
TransformMatrixMatrix4Read/WriteGets or sets the transform matrix.
GeometricTranslationVector3Read/WriteGets or sets the geometric translation.
GeometricScalingVector3Read/WriteGets or sets the geometric scaling.
GeometricRotationVector3Read/WriteGets or sets the geometric Euler rotation(measured in degree).
NamestringRead/WriteGets or sets the name.
PropertiesPropertyCollectionReadGets the collection of all properties.

Methods

SignatureDescription
SetGeometricTranslation(x: double, y: double, z: double)Sets the geometric translation.
SetGeometricScaling(sx: double, sy: double, sz: double)Sets the geometric scaling.
SetGeometricRotation(rx: double, ry: double, rz: double)Sets the geometric Euler rotation(measured in degree).
SetTranslation(tx: double, ty: double, tz: double)Sets the translation of current transform.
SetScale(sx: double, sy: double, sz: double)Sets the scale of current transform.
SetEulerAngles(rx: double, ry: double, rz: double)Sets the Euler angles in degrees of current transform.
SetRotation(rw: double, rx: double, ry: double, rz: double)Sets the rotation(as quaternion components) of current transform.
SetPreRotation(rx: double, ry: double, rz: double)Sets the pre-rotation represented in degree
SetPostRotation(rx: double, ry: double, rz: double)Sets the post-rotation represented in degree
A3DObject()Initializes a new instance of the A3DObject class with no name.
RemoveProperty(property: Property)Removes a dynamic property.
GetProperty(property: string)Get the value of specified property
SetProperty(property: string, value: object?)Sets the value of specified property
FindProperty(propertyName: string)Finds the property.

See Also

 English