9 #ifndef _LIBALMATH_ALMATH_TYPES_ALPOSITION6D_H_
10 #define _LIBALMATH_ALMATH_TYPES_ALPOSITION6D_H_
144 Position6D(
const std::vector<float>& pFloats);
267 const float& pEpsilon=0.0001f)
const;
306 void toVector (std::vector<float>& pReturnVector)
const;
307 std::vector<float>
toVector (
void)
const;
331 const Position6D& pPos1,
332 const Position6D& pPos2);
347 const Position6D& pPos1,
348 const Position6D& pPos2);
360 float norm(
const Position6D& pPos);
372 Position6D
normalize(
const Position6D& pPos);
377 #endif // _LIBALMATH_ALMATH_TYPES_ALPOSITION6D_H_
Position6D operator-() const
Overloading of operator - for Position6D.
void writeToVector(std::vector< float >::iterator &pIt) const
Write [x, y, z, wx, wy, wz] in the vector and update the iterator. It is assumed the vector has enoug...
float distanceSquared(const Position6D &pPos2) const
Compute the squared distance of translation part (x, y and z) between the actual Position6D and the o...
bool isNear(const Position6D &pPos2, const float &pEpsilon=0.0001f) const
Check if the actual Position6D is near the one given in argument.
float norm(const Position2D &pPos)
Compute the norm of a Position2D.
Position6D & operator/=(float pVal)
Overloading of operator /= for Position6D.
Position6D operator+(void) const
Overloading of operator + for Position6D.
float distance(const Position6D &pPos2) const
Compute the distance of translation part (x, y and z) between the actual Position6D and the one give ...
float distanceSquared(const Pose2D &pPos1, const Pose2D &pPos2)
Compute the squared distance between two Pose2D.
Create and play with a Position6D.
std::vector< float > toVector(void) const
bool operator==(const Position6D &pPos2) const
Overloading of operator == for Position6D.
float distance(const Pose2D &pPos1, const Pose2D &pPos2)
Compute the distance between two Pose2D.
Position2D normalize(const Position2D &pPos)
Normalize a Position2D.
Position6D()
Create a Position6D initialized with 0.0f.
Position6D operator/(float pVal) const
Overloading of operator / for Position6D.
Position6D operator*(float pVal) const
Overloading of operator * for Position6D.
Position6D & operator*=(float pVal)
Overloading of operator *= for Position6D.
Position6D & operator-=(const Position6D &pPos2)
Overloading of operator -= for Position6D.
Position6D & operator+=(const Position6D &pPos2)
Overloading of operator += for Position6D.
float norm() const
Compute the norm of the actual Position6D:
bool operator!=(const Position6D &pPos2) const
Overloading of operator != for Position6D.