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. | |
bool | isNear (const PositionAndVelocity &pDat2, const float &pEpsilon=0.0001f) const |
Check if the actual PositionAndVelocity is near the one give in argument. | |
Public Attributes | |
float | q |
float | dq |
Create and play with a PositionAndVelocity.
A PositionAndVelocity is just defined by q and dq.
Definition at line 21 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) |
Definition at line 26 of file alpositionandvelocity.h.
Definition at line 24 of file alpositionandvelocity.h.