rotate method
rotate
Chain a rotation by a quaternion
def rotate(self, q):
...
Parameter | Type | Description |
---|---|---|
q | Quaternion |
Example
from aspose.threed.utilities import Quaternion, TransformBuilder
import math
tb = TransformBuilder()
tb.rotate(Quaternion.from_euler_angle(0, math.pi, 0))
print(f"Transform Matrix: {tb.matrix}")
See Also
- module
aspose.threed.utilities
- class
TransformBuilder