Create and play with a PositionAndVelocity. More...
#include <alpositionandvelocity.h>
Public Member Functions | |
PositionAndVelocity (const float pq=0.0f, const float pdq=0.0f) | |
Create a PositionAndVelocity initialize with explicit value. More... | |
bool | isNear (const PositionAndVelocity &pDat2, const float &pEpsilon=0.0001f) const |
Check if the actual PositionAndVelocity is near the one give in argument. More... | |
void | toVector (std::vector< float > &pReturnVector) const |
Return the PositionAndVelocity as a vector of float [q, dq]. More... | |
std::vector< float > | toVector (void) const |
Public Attributes | |
float | q |
float | dq |
Create and play with a PositionAndVelocity.
A PositionAndVelocity is just defined by q and dq.
Definition at line 23 of file alpositionandvelocity.h.
AL::Math::PositionAndVelocity::PositionAndVelocity | ( | const float | pq = 0.0f , |
const float | pdq = 0.0f |
||
) |
Create a PositionAndVelocity initialize with explicit value.
pq | the float value for q |
pdq | the float value for dq |
bool AL::Math::PositionAndVelocity::isNear | ( | const PositionAndVelocity & | pDat2, |
const float & | pEpsilon = 0.0001f |
||
) | const |
Check if the actual PositionAndVelocity is near the one give in argument.
pDat2 | the second PositionAndVelocity |
pEpsilon | an optional epsilon distance (default = 0.0001f) |
void AL::Math::PositionAndVelocity::toVector | ( | std::vector< float > & | pReturnVector | ) | const |
Return the PositionAndVelocity as a vector of float [q, dq].
float AL::Math::PositionAndVelocity::dq |
Definition at line 28 of file alpositionandvelocity.h.
float AL::Math::PositionAndVelocity::q |
Definition at line 26 of file alpositionandvelocity.h.