9 #ifndef _LIBALMATH_ALMATH_TYPES_ALPOSITION3D_H_
10 #define _LIBALMATH_ALMATH_TYPES_ALPOSITION3D_H_
108 Position3D (
const std::vector<float>& pFloats);
233 const float& pEpsilon=0.0001f)
const;
284 void toVector(std::vector<float>& pReturnVector)
const;
285 std::vector<float> toVector(
void)
const;
300 const Position3D& pPos1,
301 const Position3D& pPos2);
315 const Position3D& pPos1,
316 const Position3D& pPos2);
328 float norm(
const Position3D& pPos);
340 Position3D
normalize(
const Position3D& pPos);
353 const Position3D& pPos1,
354 const Position3D& pPos2);
369 const Position3D& pPos1,
370 const Position3D& pPos2);
383 const Position3D& pPos1,
384 const Position3D& pPos2,
389 #endif // _LIBALMATH_ALMATH_TYPES_ALPOSITION3D_H_
Position3D operator*(float pVal) const
Overloading of operator * for Position3D.
Position3D & operator/=(float pVal)
Overloading of operator /= for Position3D.
Position3D normalize() const
Normalize the actual Position3D.
float norm() const
Compute the norm of the actual Position3D.
float dotProduct(const Position3D &pPos2) const
Compute the dot Product between the actual Position3D and the one give in argument.
bool operator==(const Position3D &pPos2) const
Overloading of operator == for Position3D.
float distanceSquared(const Position3D &pPos1, const Position3D &pPos2)
Compute the squared distance between two Position3D:
float norm(const Position3D &pPos)
Compute the norm of a Position3D:
bool operator!=(const Position3D &pPos2) const
Overloading of operator != for Position3D.
Position3D crossProduct(const Position3D &pPos2) const
Compute the cross Product between the actual Position3D and the one give in argument.
Position3D normalize(const Position3D &pPos)
Normalize a Position3D:
float crossProduct(const Position2D &pPos1, const Position2D &pPos2)
Compute the cross Product of two Position2D.
Position3D & operator+=(const Position3D &pPos2)
Overloading of operator += for Position3D.
Position3D()
Create a Position3D initialize with 0.0f.
Position3D operator-() const
Overloading of operator - for Position3D.
Position3D & operator-=(const Position3D &pPos2)
Overloading of operator -= for Position3D.
float distanceSquared(const Position3D &pPos2) const
Compute the squared distance between the actual Position3D and the one given in argument.
Create and play with a Position3D.
bool isNear(const Position3D &pPos2, const float &pEpsilon=0.0001f) const
Check if the actual Position3D is near the one give in argument.
Position3D operator+(void) const
Overloading of operator + for Position3D.
Position3D & operator*=(float pVal)
Overloading of operator *= for Position3D.
Position3D operator/(float pVal) const
Overloading of operator / for Position3D.
float distance(const Position3D &pPos2) const
Compute the distance between the actual Position3D and the one given in argument. ...
float distance(const Position3D &pPos1, const Position3D &pPos2)
Compute the distance between two Position3D: