rotate_radian method

rotate_radian(self, angle, axis)

Chain a rotation transform in radian


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

rotate_radian(self, rot, order)

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