|
t
|
The Euler rotation class. More...
#include <EulerRotation.hpp>
Public Member Functions | |
| EulerRotation (double _x, double _y, double _z, EulerRotationOrder _order) | |
| Creates a new representation of a rotation based on Euler angles. | |
| EulerRotation & | copy (const EulerRotation &source) |
| Copies another Euler rotation into this Euler rotation. | |
Public Attributes | |
| double | x |
| The amount of rotation about the local X axis in radians. | |
| double | y |
| The amount of rotation about the local Y axis in radians. | |
| double | z |
| The amount of rotation about the local Z axis in radians. | |
| EulerRotationOrder | order |
| The order to perform the rotations around individual axes. | |
Friends | |
| EulerRotation | operator+ (const EulerRotation &a, const EulerRotation &b) |
| Adds 2 Euler rotations. | |
| EulerRotation | operator- (const EulerRotation &a, const EulerRotation &b) |
| Substracts an Euler rotation from another Euler rotation. | |
The Euler rotation class.
An Euler rotation is represented by 3 rotations about the local X, Y, and Z axes, executed in a certain order. Note that if the 3 rotations are the same but the execution order is different, we might get a different rotation.
|
inline |
Creates a new representation of a rotation based on Euler angles.
| _x | The amount of rotation about the local X axis in radians. |
| _y | The amount of rotation about the local Y axis in radians. |
| _z | The amount of rotation about the local Z axis in radians. |
| _order | The order to perform the rotations around individual axes. |
|
inline |
Copies another Euler rotation into this Euler rotation.
| source | The Euler rotation to copy from. |
|
friend |
Adds 2 Euler rotations.
| a | An Euler rotation. |
| b | Another Euler rotation. |
a and b.
|
friend |
Substracts an Euler rotation from another Euler rotation.
| a | An Euler rotation. |
| b | Another Euler rotation. |
a and b.