disguise developers

Python API

Execute Python code in Designer sessions to control and query projects programmatically.

AxisAngle

Properties

angle : float

axis : Vec

leftHanded : bool (Read-Only)

Constructors

__init__(self)

__init__(self, axis: Type1, angle: Type2)

__init__(self, R: Mat, bLeftHanded: bool)

__init__(self, axis: Type1, angle: Type2, bLeftHanded: bool)

Methods

calcEuler(self) -> Type1

calculate Euler angles (scaled 0-1) using Rodrigues’ rotation formula

calcRotationMatrix(self) -> Mat

calculate rotation matrix for this Euler axis/angle using Rodrigues’ rotation formula

rotate(self, wpoint: Type1) -> Type1

rotate a world point around this axis/angle using Rodrigues’ rotation formula

Special Methods

__eq__(self, rhs: AxisAngle[Type1, Type2]) -> bool

__ne__(self, rhs: AxisAngle[Type1, Type2]) -> bool