TransformBuilder

Vue de l’ensemble

‘TransformBuilder’ est une classe dans Aspose.3D FOSS pour Java.

Classes d’utilité pour la construction de matrices de transformation.

Cette classe fournit 23 méthodes pour travailler avec des objets TransformBuilder dans les programmes Java. Les méthodologies disponibles comprennent: ‘TransformBuild’, ‘append’, compose', ‘getComposeOrder’, 'getMatrix', ’prepend', ‚reset, ‘rotate‘, rotatDegree , ‘roatEulerDgree’ , rotat EulerRadian et 4 méthode supplémentaires. Tous les membres publics sont accessibles à toute application Java après l’installation de l’Aspouse.3D FOSS pour le package Java . Propriétés : ‘composOrde’, «matrix`.

Propriétés

NameTypeAccessDescription
matrixMatrix4ReadGets the current matrix.
composeOrderComposeOrderReadGets the compose order.

méthodes

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.

Voir aussi

  • Aspose.3D - référence API d’entreprise
 Français