rotate_degree method
rotate_degree
Chain a rotation transform in degree
def rotate_degree(self, angle, axis):
...
| Parameter | Type | Description |
|---|---|---|
| angle | float | The angle to rotate in degree |
| axis | Vector3 | The axis to rotate |
Example
from aspose.threed.utilities import TransformBuilder, Vector3
tb = TransformBuilder()
tb.rotate_degree(90, Vector3.Y_AXIS)
print(f"Transform Matrix: {tb.matrix}")
rotate_degree
Append rotation with specified order
def rotate_degree(self, rot, order):
...
| Parameter | Type | Description |
|---|---|---|
| rot | Vector3 | Rotation in degrees |
| order | RotationOrder |
See Also
- module
aspose.threed.utilities - class
TransformBuilder