9 #ifndef _LIBALMATH_ALMATH_TYPES_ALVELOCITY3D_H_
10 #define _LIBALMATH_ALMATH_TYPES_ALVELOCITY3D_H_
108 Velocity3D(
const std::vector<float>& pFloats);
215 const float& pEpsilon=0.0001f)
const;
241 void toVector(std::vector<float>& pReturnValue)
const;
242 std::vector<float>
toVector(
void)
const;
253 const Velocity3D& pVel1);
265 float norm (
const Velocity3D& pVel);
277 Velocity3D
normalize(
const Velocity3D& pVel);
281 #endif // _LIBALMATH_ALMATH_TYPES_ALVELOCITY3D_H_
Velocity3D & operator+=(const Velocity3D &pVel2)
Overloading of operator += for Velocity3D.
float norm(const Position2D &pPos)
Compute the norm of a Position2D.
bool isNear(const Velocity3D &pVel2, const float &pEpsilon=0.0001f) const
Check if the actual Velocity3D is Near the one given in argument.
Velocity3D & operator-=(const Velocity3D &pVel2)
Overloading of operator -= for Velocity3D.
Create and play with a Velocity3D.
std::vector< float > toVector(void) const
Velocity3D normalize() const
Normalize the actual Velocity3D:
Velocity3D operator-() const
Overloading of operator - for Velocity3D.
Velocity3D & operator*=(const float pVal)
Overloading of operator *= for Velocity3D.
void writeToVector(std::vector< float >::iterator &pIt) const
Write [xd, yd, zd] in the vector and update the iterator. It is assumed the vector has enough space...
Velocity3D & operator/=(const float pVal)
Overloading of operator /= for Velocity3D.
Position2D normalize(const Position2D &pPos)
Normalize a Position2D.
bool operator!=(const Velocity3D &pVel2) const
Overloading of operator != for Velocity3D.
Velocity3D operator+(void) const
Overloading of operator + for Velocity3D.
Velocity3D()
Create a Velocity3D initialize with 0.0f.
float norm() const
Compute the norm of the actual Velocity3D:
bool operator==(const Velocity3D &pVel2) const
Overloading of operator == for Velocity3D.
Velocity3D operator/(const float pVal) const
Overloading of operator / for Velocity3D.
Velocity3D operator*(const float pVal) const
Overloading of operator * for Velocity3D.