TransformBuilder
Overview
TransformBuilder is a class in Aspose.3D FOSS for Java.
Utility class for building transformation matrices.
This class provides 23 methods for working with TransformBuilder objects in Java programs.
Available methods include: TransformBuilder, append, compose, getComposeOrder, getMatrix, prepend, reset, rotate, rotateDegree, rotateEulerDegree, rotateEulerRadian, rotateRadian, and 4 additional methods.
All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package.
Properties: composeOrder, matrix.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
matrix | Matrix4 | Read | Gets the current matrix. |
composeOrder | ComposeOrder | Read | Gets the compose order. |
Methods
| Signature | Description |
|---|---|
TransformBuilder(order: ComposeOrder) | Creates a new TransformBuilder with identity matrix and specified order. |
TransformBuilder(initial: Matrix4, order: ComposeOrder) | Creates a new TransformBuilder with specified initial matrix and order. |
getMatrix() → Matrix4 | Gets the current matrix. |
setMatrix(value: Matrix4) | Sets the current matrix. |
getComposeOrder() → ComposeOrder | Gets the compose order. |
setComposeOrder(value: ComposeOrder) | Sets the compose order. |
compose(m: Matrix4) | Composes the specified matrix with the current matrix. |
append(m: Matrix4) → TransformBuilder | Appends the specified matrix to the current matrix. |
prepend(m: Matrix4) → TransformBuilder | Prepends the specified matrix to the current matrix. |
scale(s: double) → TransformBuilder | Scales the current matrix by the specified scalar. |
scale(x: double, y: double, z: double) → TransformBuilder | Scales the current matrix by the specified factors. |
scale(s: Vector3) → TransformBuilder | Scales the current matrix by the specified vector. |
rotateDegree(angle: double, axis: Vector3) → TransformBuilder | Rotates the current matrix by the specified angle (in degrees) around the specified axis. |
rotateRadian(angle: double, axis: Vector3) → TransformBuilder | Rotates the current matrix by the specified angle (in radians) around the specified axis. |
rotate(q: Quaternion) → TransformBuilder | Rotates the current matrix by the specified quaternion. |
rotateEulerDegree(degX: double, degY: double, degZ: double) → TransformBuilder | Rotates the current matrix by the specified Euler angles (in degrees). |
rotateEulerRadian(x: double, y: double, z: double) → TransformBuilder | Rotates the current matrix by the specified Euler angles (in radians). |
rotateEulerRadian(r: Vector3) → TransformBuilder | Rotates the current matrix by the specified Euler angles (in radians). |
translate(tx: double, ty: double, tz: double) → TransformBuilder | Translates the current matrix by the specified vector. |
translate(v: Vector3) → TransformBuilder | Translates the current matrix by the specified vector. |
reset() | Resets the matrix to identity. |
rotateDegree(rot: Vector3, order: RotationOrder) | Rotates the current matrix by the specified Euler angles (in degrees) with the specified order. |
rotateRadian(rot: Vector3, order: RotationOrder) | Rotates the current matrix by the specified Euler angles (in radians) with the specified order. |