TransformBuilder

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

NameTypeAccessDescription
matrixMatrix4ReadGets the current matrix.
composeOrderComposeOrderReadGets the compose order.

Methods

SignatureDescription
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()Matrix4Gets the current matrix.
setMatrix(value: Matrix4)Sets the current matrix.
getComposeOrder()ComposeOrderGets the compose order.
setComposeOrder(value: ComposeOrder)Sets the compose order.
compose(m: Matrix4)Composes the specified matrix with the current matrix.
append(m: Matrix4)TransformBuilderAppends the specified matrix to the current matrix.
prepend(m: Matrix4)TransformBuilderPrepends the specified matrix to the current matrix.
scale(s: double)TransformBuilderScales the current matrix by the specified scalar.
scale(x: double, y: double, z: double)TransformBuilderScales the current matrix by the specified factors.
scale(s: Vector3)TransformBuilderScales the current matrix by the specified vector.
rotateDegree(angle: double, axis: Vector3)TransformBuilderRotates the current matrix by the specified angle (in degrees) around the specified axis.
rotateRadian(angle: double, axis: Vector3)TransformBuilderRotates the current matrix by the specified angle (in radians) around the specified axis.
rotate(q: Quaternion)TransformBuilderRotates the current matrix by the specified quaternion.
rotateEulerDegree(degX: double, degY: double, degZ: double)TransformBuilderRotates the current matrix by the specified Euler angles (in degrees).
rotateEulerRadian(x: double, y: double, z: double)TransformBuilderRotates the current matrix by the specified Euler angles (in radians).
rotateEulerRadian(r: Vector3)TransformBuilderRotates the current matrix by the specified Euler angles (in radians).
translate(tx: double, ty: double, tz: double)TransformBuilderTranslates the current matrix by the specified vector.
translate(v: Vector3)TransformBuilderTranslates 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.

See Also

 English