TransformBuilder
Overview
TransformBuilder is a class in Aspose.3D FOSS for .NET.
TransformBuilder.TransformBuilder creates a builder with an initial matrix and compose order.
This class provides 13 methods for working with TransformBuilder objects in .NET programs.
Available methods include: Append, Compose, Prepend, Rearrange, Reset, Rotate, RotateDegree, RotateEulerDegree, RotateEulerRadian, RotateRadian, Scale, TransformBuilder, and 1 additional methods.
All exported members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package.
Properties: ComposeOrder, Matrix.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Matrix | Matrix4 | Read/Write | Gets or sets the matrix. |
ComposeOrder | ComposeOrder | Read/Write | Gets or sets the compose order. |
Methods
| Signature | Description |
|---|---|
TransformBuilder(initial: Matrix4, order: ComposeOrder) | Creates a builder with default matrix and specified compose order |
TransformBuilder(order: ComposeOrder) | |
Compose(m: Matrix4) | Replaces the current matrix with the supplied matrix |
Append(m: Matrix4) | Multiplies the current matrix by m on the right |
Prepend(m: Matrix4) | Multiplies the current matrix by m on the left |
Rearrange(newX: Axis, newY: Axis, newZ: Axis) | Reorders axes to newX, newY, newZ |
Scale(s: double) | Scales using vector components as factors |
Scale(x: double, y: double, z: double) | |
Scale(s: Vector3) | |
RotateDegree(angle: double, axis: Vector3) | Rotates by Euler vector rot (degrees) in given order |
RotateRadian(angle: double, axis: Vector3) | Rotates by Euler vector rot (radians) in given order |
Rotate(q: Quaternion) | Applies rotation defined by quaternion q |
RotateEulerDegree(degX: double, degY: double, degZ: double) | Rotates using Euler angles in degrees |
RotateEulerRadian(x: double, y: double, z: double) | Rotates using Euler angles in radians |
RotateEulerRadian(r: Vector3) | |
Translate(tx: double, ty: double, tz: double) | Adds translation using vector v |
Translate(v: Vector3) | |
Reset() | Restores the matrix to identity |
RotateDegree(rot: Vector3, order: RotationOrder) | |
RotateRadian(rot: Vector3, order: RotationOrder) |