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
| Name | Type | Access | Description |
|---|---|---|---|
matrix | Matrix4 | Read | Gets the current matrix. |
composeOrder | ComposeOrder | Read | Gets the compose order. |
méthodes
| 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. |
Voir aussi
- Aspose.3D - référence API d’entreprise