Classes
Methods
(inner) equivalentEuler(eulerAngles, activeopt, degreesopt) → {Array}
Calculates equivalent Euler angles for a given set of Euler angles.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
eulerAngles | Array | An array of three Euler angles [alpha, beta, gamma] in radians. | ||
active | boolean | <optional> | true | Whether the rotation is active or passive. |
degrees | boolean | <optional> | false | Whether to return the angles in degrees. If false, the angles are returned in radians. |
Returns:
An array of four sets of equivalent Euler angles. Each set of angles is an array of three elements.
The first set of angles is the original Euler angles. The remaining sets are calculated based on the convention and whether the rotation is active or passive.
If degrees is true, all angles are converted to degrees.
- Type:
- Array
(inner) eulerRotation(alpha, beta, gamma, PAS, mode, active) → {mathjs.Matrix}
Parameters:
| Name | Type | Description |
|---|---|---|
alpha | * | in radians |
beta | * | in radians |
gamma | * | in radians |
PAS | * | (principal axis system) |
mode | * | (e.g. 'zyz') |
active | * | (true: active rotation, false: passive rotation) |
Returns:
rotation matrix
- Type:
- mathjs.
Matrix