Reference: units Module¶
The psiqdk.workbench.units module provides helpers for specifying rotation angles in different units.
RotationAngle ¶
RotationAngle is a class with magnitude and units.
In Workbench, these are primarily used to handle conversion between rotation units (radians, degrees, turns).
RotationAngle class supports arithmetic and comparison operators, such as +, <=, etc.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mag
|
float
|
Magnitude |
required |
units
|
str
|
Units such as 'deg' or 'rad' |
required |