|
libalmath
2.5.7.1
|
Struct composed of a Position3D and a Quaternion More...
#include <aldisplacement.h>
Public Member Functions | |
| Displacement () | |
| Create a Displacement initialized with default values More... | |
| Displacement (const Position3D &pos3d, const Quaternion &quat=Quaternion()) | |
| Create a Displacement with the given Position3D and Quaternion More... | |
| Displacement & | operator*= (const Displacement &pDisp) |
| Defining composition of Displacement with * sign More... | |
| Displacement | operator* (const Displacement &pDisp) |
| Define the binary operation of a composition of Displacements. More... | |
| bool | isNear (const Displacement &pDisp2, const float pEpsilon=0.0001f) const |
| Check if the current Displacement is Near the one given in argument. More... | |
Public Attributes | |
| Position3D | P |
| Translation of the Displacement More... | |
| Quaternion | Q |
| Rotation of the Displacement More... | |
Struct composed of a Position3D and a Quaternion
Definition at line 21 of file aldisplacement.h.
|
explicit |
Create a Displacement initialized with default values
| AL::Math::Displacement::Displacement | ( | const Position3D & | pos3d, |
| const Quaternion & | quat = Quaternion() |
||
| ) |
Create a Displacement with the given Position3D and Quaternion
| pos3d | the pose of the created Displacement |
| quat | the rotation of the created Displacement - default: identity |
| bool AL::Math::Displacement::isNear | ( | const Displacement & | pDisp2, |
| const float | pEpsilon = 0.0001f |
||
| ) | const |
Check if the current Displacement is Near the one given in argument.
| pDisp2 | the second Displacement |
| pEpsilon | an optional epsilon distance |
| Displacement AL::Math::Displacement::operator* | ( | const Displacement & | pDisp | ) |
Define the binary operation of a composition of Displacements.
| pDisp | second operand of the composition |
| Displacement& AL::Math::Displacement::operator*= | ( | const Displacement & | pDisp | ) |
Defining composition of Displacement with * sign
| pDisp | the displacement that is composed with the current displacement |
| Position3D AL::Math::Displacement::P |
Translation of the Displacement
Definition at line 24 of file aldisplacement.h.
| Quaternion AL::Math::Displacement::Q |
Rotation of the Displacement
Definition at line 26 of file aldisplacement.h.