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