Crate quaternion_wrapper
source ·Expand description
This is a wrapper for the quaternion-core crate.
Provides quaternion operations and interconversion with several attitude representations. Operator overloading allows implementation similar to mathematical expressions.
The supported operations are listed in the table below:
| ↓Left / Right→ | QuaternionWrapper | Vector3Wrapper | ScalarWrapper |
|---|---|---|---|
| QuaternionWrapper | +, -, *, +=, -=, *= | +, -, * | +, -, *, / |
| Vector3Wrapper | +, -, * | +, -, *, +=, -= | +, -, *, / |
| ScalarWrapper | +, -, * | +, -, * | +, -, *, /, +=, -=, *=, /= |
Versor
Versor refers to a Quaternion representing a rotation, the norm of which is 1.
The documentation for this crate basically writes Versor instead of Unit Quaternion, but the difference in usage is not clear. Please think Versor = Unit Quaternion.
Structs
- Treated as Real Quaternion.
- Treated as Pure Quaternion.
Enums
- Specifies the rotation sequence of Euler angles.
- Specifies the rotation type of Euler angles.
Type Aliases
- Direction Cosine Matrix
- Quaternion
- Three dimensional vector (Pure Quaternion)