disguise developers

Python API

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

AxisAngle

represents a rotation in 3D space using a unit axis and angle (Euler axis/angle)
Please be aware that the axis is arbitrary when the angle is ~zero.

NOTE: All angles in AxisAngle are in [radians], not degrees!
NOTE: For conversions a left-handed coordinate system with y-axis pointing up is assumed by default!
Note: Template instantiated for <Vec,float> and <VecD,double>.

Properties

angle : Type2

axis : Type1

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