rotate_radian method

rotate_radian

Chain a rotation transform in radian

def rotate_radian(self, angle, axis):
    ...
ParameterTypeDescription
anglefloatThe angle to rotate in radian
axisVector3The axis to rotate

Example

from aspose.threed.utilities import TransformBuilder, Vector3
import math

tb = TransformBuilder()
tb.rotate_radian(math.pi, Vector3.Y_AXIS)
print(f"Transform Matrix: {tb.matrix}")

rotate_radian

Append rotation with specified order

def rotate_radian(self, rot, order):
    ...
ParameterTypeDescription
rotVector3Rotation in radian
orderRotationOrder

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