4-component vector.  
 More...
#include <Vec3.hpp>
 | 
| 
float  | x = 0 | 
|   | X coordinate. 
  | 
|   | 
| 
float  | y = 0 | 
|   | Y coordinate. 
  | 
|   | 
| 
float  | z = 0 | 
|   | Z coordinate. 
  | 
|   | 
| 
float  | w = 0 | 
|   | W coordinate. 
  | 
|   | 
  
  
      
        
          | ae3d::Vec4::Vec4  | 
          ( | 
          float  | 
          ax,  | 
         
        
           | 
           | 
          float  | 
          ay,  | 
         
        
           | 
           | 
          float  | 
          az,  | 
         
        
           | 
           | 
          float  | 
          aw  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructor.
- Parameters
 - 
  
    | ax | X-coordinate.  | 
    | ay | Y-coordinate.  | 
    | az | Z-coordinate.  | 
    | aw | W-coordinate.  | 
  
   
 
 
  
  
      
        
          | ae3d::Vec4::Vec4  | 
          ( | 
          const Vec3 &  | 
          v | ) | 
           | 
         
       
   | 
  
inlineexplicit   | 
  
 
 
  
  
      
        
          | ae3d::Vec4::Vec4  | 
          ( | 
          const Vec3 &  | 
          v,  | 
         
        
           | 
           | 
          float  | 
          aW  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | float ae3d::Vec4::Dot  | 
          ( | 
          const Vec4 &  | 
          v | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Dot product.
- Parameters
 - 
  
  
 
- Returns
 - Dot product of this vector and v. 
 
 
 
  
  
      
        
          | bool ae3d::Vec4::IsAlmost  | 
          ( | 
          const Vec4 &  | 
          v2 | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Compares this vector with another vector. 
- Parameters
 - 
  
  
 
- Returns
 - True if vectors are almost equal. 
 
 
 
  
  
      
        
          | float ae3d::Vec4::Length  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | void ae3d::Vec4::Normalize  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | Vec4 ae3d::Vec4::operator*  | 
          ( | 
          float  | 
          f | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Multiplication operator.
- Parameters
 - 
  
    | f | A value that is multiplied with this vector.  | 
  
   
- Returns
 - This vector multiplied by f. 
 
 
 
  
  
      
        
          | Vec4& ae3d::Vec4::operator+=  | 
          ( | 
          const Vec4 &  | 
          v | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Operator addition and assign.
- Parameters
 - 
  
    | v | Vector that is to be added to this vector.  | 
  
   
 
 
  
  
      
        
          | Vec4& ae3d::Vec4::operator-=  | 
          ( | 
          const Vec4 &  | 
          v | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Operator subtract and assign.
- Parameters
 - 
  
    | v | Vector that is to be subtracted from this vector.  | 
  
   
 
 
  
  
      
        
          | Vec4& ae3d::Vec4::operator=  | 
          ( | 
          const Vec4 &  | 
          v | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Assignment operator.
- Parameters
 - 
  
    | v | a vector that is assigned to this vector.  | 
  
   
- Returns
 - Reference to this vector. 
 
 
 
The documentation for this struct was generated from the following file: