TransformBuilder

TransformBuilder

Overview

TransformBuilder is a class in Aspose.3D FOSS for .NET.

TransformBuilder enables composition of multiple transform matrices with methods like Append, Prepend, Scale, RotateDegree, and provides the resulting Matrix via its Matrix property.

This class provides 20 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 public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package. Properties: ComposeOrder, Matrix.

Properties

NameTypeAccessDescription
MatrixMatrix4Read/WriteGets or sets the matrix.
ComposeOrderComposeOrderRead/WriteGets or sets the compose order.

Methods

SignatureDescription
TransformBuilder(initial: Matrix4, order: ComposeOrder)Creates a builder with default matrix and specified compose order
TransformBuilder(order: ComposeOrder)Calls TransformBuilder(order) on this TransformBuilder instance.
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: Aspose.ThreeD.Axis, newY: Aspose.ThreeD.Axis, newZ: Aspose.ThreeD.Axis)Reorders axes to newX, newY, newZ
Scale(s: double)Scales using vector components as factors
Scale(x: double, y: double, z: double)Calls Scale(x, y, z) on this TransformBuilder instance.
Scale(s: Vector3)Calls Scale(s) on this TransformBuilder instance.
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)Calls RotateEulerRadian(r) on this TransformBuilder instance.
Translate(tx: double, ty: double, tz: double)Adds translation using vector v
Translate(v: Vector3)Calls Translate(v) on this TransformBuilder instance.
Reset()Restores the matrix to identity
RotateDegree(rot: Vector3, order: RotationOrder)Calls RotateDegree(rot, order) on this TransformBuilder instance.
RotateRadian(rot: Vector3, order: RotationOrder)Calls RotateRadian(rot, order) on this TransformBuilder instance.

See Also

 English