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;
324 const Position6D& pPos1,
325 const Position6D& pPos2);
340 const Position6D& pPos1,
341 const Position6D& pPos2);
353 float norm(
const Position6D& pPos);
365 Position6D
normalize(
const Position6D& pPos);
370 #endif // _LIBALMATH_ALMATH_TYPES_ALPOSITION6D_H_
float norm() const
Compute the norm of the actual Position6D:
Position6D operator/(float pVal) const
Overloading of operator / for Position6D.
Position6D & operator*=(float pVal)
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*(float pVal) 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 ...
Create and play with a Position6D.
float norm(const Position6D &pPos)
Compute the norm of a Position6D:
Position6D normalize(const Position6D &pPos)
Normalize a Position6D:
Position6D()
Create a Position6D initialized with 0.0f.
bool isNear(const Position6D &pPos2, const float &pEpsilon=0.0001f) const
Check if the actual Position6D is near the one given in argument.
bool operator==(const Position6D &pPos2) const
Overloading of operator == for Position6D.
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 operator!=(const Position6D &pPos2) const
Overloading of operator != for Position6D.
Position6D operator-() const
Overloading of operator - for Position6D.
float distance(const Position6D &pPos1, const Position6D &pPos2)
Compute the distance of translation part (x, y and z) between two Position6D:
Position6D & operator+=(const Position6D &pPos2)
Overloading of operator += for Position6D.
float distanceSquared(const Position6D &pPos1, const Position6D &pPos2)
Compute the squared distance of translation part (x, y and z) between two Position6D: ...
Position6D operator+(void) const
Overloading of operator + for Position6D.