Create and play with a Velocity6D.  
 More...
#include <alvelocity6d.h>
List of all members.
| 
Public Member Functions | 
|  | Velocity6D () | 
|  | Create a Velocity6D initialize with 0.0f. 
 | 
|  | Velocity6D (float pInit) | 
|  | Create a Velocity6D initialize with the same float. 
 | 
|  | Velocity6D (float pXd, float pYd, float pZd, float pWxd, float pWyd, float pWzd) | 
|  | Create a Velocity6D initialize with explicit value. 
 | 
|  | Velocity6D (const std::vector< float > &pFloats) | 
|  | Create a Velocity6D with an std::vector. 
 | 
| Velocity6D | operator+ (const Velocity6D &pVel2) const | 
|  | Overloading of operator + for Velocity6D. 
 | 
| Velocity6D | operator- (const Velocity6D &pVel2) const | 
|  | Overloading of operator - for Velocity6D. 
 | 
| Velocity6D | operator+ () const | 
|  | Overloading of operator + for Velocity6D. 
 | 
| Velocity6D | operator- () const | 
|  | Overloading of operator - for Velocity6D. 
 | 
| Velocity6D | operator* (const float pVal) const | 
|  | Overloading of operator * for Velocity6D. 
 | 
| Velocity6D | operator/ (const float pVal) const | 
|  | Overloading of operator / for Velocity6D. 
 | 
| bool | operator== (const Velocity6D &pVel2) const | 
|  | Overloading of operator == for Velocity6D. 
 | 
| bool | operator!= (const Velocity6D &pVel2) const | 
|  | Overloading of operator != for Velocity6D. 
 | 
| Velocity6D & | operator*= (const float pVal) | 
|  | Overloading of operator *= for Velocity6D. 
 | 
| Velocity6D & | operator/= (const float pVal) | 
|  | Overloading of operator /= for Velocity6D. 
 | 
| bool | isNear (const Velocity6D &pVel2, const float &pEpsilon=0.0001f) const | 
|  | Check if the actual Velocity6D is Near the one given in argument. 
 | 
| float | norm () const | 
|  | Compute the norm of the actual Velocity6D: 
 | 
| Velocity6D | normalize () const | 
|  | Normalize the actual Velocity6D: 
 | 
| std::vector< float > | toVector () const | 
|  | Return the Velocity6D as a vector of float [xd, yd, zd, wxd, wyd, wzd]. 
 | 
Detailed Description
Create and play with a Velocity6D. 
A Velocity6D is just defined by xd, yd, zd, wxd, wyd and wzd. 
Definition at line 24 of file alvelocity6d.h.
Constructor & Destructor Documentation
      
        
          | AL::Math::Velocity6D::Velocity6D | ( |  | ) |  | 
      
 
 
  
  | 
        
          | AL::Math::Velocity6D::Velocity6D | ( | float | pInit | ) |  |  | explicit | 
 
Create a Velocity6D initialize with the same float. 
![$ \left[\begin{array}{c} xd \\ yd \\ zd \\ wxd \\ wyd \\ wzd \end{array}\right] = \left[\begin{array}{c} pInit \\ pInit \\ pInit \\ pInit \\ pInit \\ pInit \end{array}\right]$](form_107.png) 
 
- Parameters:
- 
  
    | pInit | the float value for each member |  
 
 
 
      
        
          | AL::Math::Velocity6D::Velocity6D | ( | float | pXd, | 
        
          |  |  | float | pYd, | 
        
          |  |  | float | pZd, | 
        
          |  |  | float | pWxd, | 
        
          |  |  | float | pWyd, | 
        
          |  |  | float | pWzd | 
        
          |  | ) |  |  | 
      
 
Create a Velocity6D initialize with explicit value. 
![$ \left[\begin{array}{c} xd \\ yd \\ zd \\ wxd \\ wyd \\ wzd \end{array}\right] = \left[\begin{array}{c} pXd \\ pYd \\ pZd \\ pWxd \\ pWyd \\ pWzd \end{array}\right]$](form_108.png) 
 
- Parameters:
- 
  
    | pXd | the float value for xd |  | pYd | the float value for yd |  | pZd | the float value for zd |  | pWxd | the float value for wxd |  | pWyd | the float value for wyd |  | pWzd | the float value for wzd |  
 
 
 
      
        
          | AL::Math::Velocity6D::Velocity6D | ( | const std::vector< float > & | pFloats | ) |  | 
      
 
Create a Velocity6D with an std::vector. 
![$ \left[\begin{array}{c} xd \\ yd \\ zd \\ wxd \\ wyd \\ wzd \end{array}\right] = \left[\begin{array}{c} pFloats[0] \\ pFloats[1] \\ pFloats[2] \\ pFloats[3] \\ pFloats[4] \\ pFloats[5] \end{array}\right]$](form_109.png) 
 
- Parameters:
- 
  
    | pFloats | An std::vector<float> of size 6 for respectively: |  
 
xd, yd, zd, wxd, wyd and wzd 
 
 
Member Function Documentation
      
        
          | bool AL::Math::Velocity6D::isNear | ( | const Velocity6D & | pVel2, | 
        
          |  |  | const float & | pEpsilon = 0.0001f | 
        
          |  | ) |  | const | 
      
 
Check if the actual Velocity6D is Near the one given in argument. 
- Parameters:
- 
  
    | pVel2 | the second Velocity6D |  | pEpsilon | an optional epsilon distance |  
 
- Returns:
- true if the difference of each float of the two Velocity6D is less than pEpsilon 
 
 
      
        
          | float AL::Math::Velocity6D::norm | ( |  | ) | const | 
      
 
 
      
        
          | Velocity6D AL::Math::Velocity6D::normalize | ( |  | ) | const | 
      
 
 
      
        
          | bool AL::Math::Velocity6D::operator!= | ( | const Velocity6D & | pVel2 | ) | const | 
      
 
Overloading of operator != for Velocity6D. 
- Parameters:
- 
  
  
 
 
      
        
          | Velocity6D AL::Math::Velocity6D::operator* | ( | const float | pVal | ) | const | 
      
 
Overloading of operator * for Velocity6D. 
- Parameters:
- 
  
  
 
 
      
        
          | Velocity6D& AL::Math::Velocity6D::operator*= | ( | const float | pVal | ) |  | 
      
 
Overloading of operator *= for Velocity6D. 
- Parameters:
- 
  
  
 
 
Overloading of operator + for Velocity6D. 
- Parameters:
- 
  
  
 
 
      
        
          | Velocity6D AL::Math::Velocity6D::operator+ | ( |  | ) | const | 
      
 
 
Overloading of operator - for Velocity6D. 
- Parameters:
- 
  
  
 
 
      
        
          | Velocity6D AL::Math::Velocity6D::operator- | ( |  | ) | const | 
      
 
 
      
        
          | Velocity6D AL::Math::Velocity6D::operator/ | ( | const float | pVal | ) | const | 
      
 
Overloading of operator / for Velocity6D. 
- Parameters:
- 
  
  
 
 
      
        
          | Velocity6D& AL::Math::Velocity6D::operator/= | ( | const float | pVal | ) |  | 
      
 
Overloading of operator /= for Velocity6D. 
- Parameters:
- 
  
  
 
 
      
        
          | bool AL::Math::Velocity6D::operator== | ( | const Velocity6D & | pVel2 | ) | const | 
      
 
Overloading of operator == for Velocity6D. 
- Parameters:
- 
  
  
 
 
      
        
          | std::vector<float> AL::Math::Velocity6D::toVector | ( |  | ) | const | 
      
 
Return the Velocity6D as a vector of float [xd, yd, zd, wxd, wyd, wzd]. 
 
 
Member Data Documentation
      
        
          | float AL::Math::Velocity6D::wxd | 
      
 
 
      
        
          | float AL::Math::Velocity6D::wyd | 
      
 
 
      
        
          | float AL::Math::Velocity6D::wzd | 
      
 
 
      
        
          | float AL::Math::Velocity6D::xd | 
      
 
 
      
        
          | float AL::Math::Velocity6D::yd | 
      
 
 
      
        
          | float AL::Math::Velocity6D::zd | 
      
 
 
The documentation for this struct was generated from the following file: