A representation of a vector with SIZE components using DATA_TYPE as the data type for each component. More...
#include <Vec.h>


Public Types | |
| enum | Params { Size = SIZE } | 
The number of components this Vec has. More... | |
| typedef DATA_TYPE | DataType | 
| The datatype used for the components of this Vec.   | |
| typedef VecBase< DATA_TYPE, SIZE > | BaseType | 
| The superclass type.   | |
| typedef Vec< DATA_TYPE, SIZE > | VecType | 
Public Member Functions | |
| Vec () | |
| Default constructor.   | |
| template<typename REP2 > | |
| VecType & | operator= (const VecBase< DATA_TYPE, SIZE, REP2 > &rhs) | 
| Assign from different rep.   | |
Value constructors  | |
| template<typename REP2 > | |
| Vec (const VecBase< DATA_TYPE, SIZE, REP2 > &rVec) | |
| Make an exact copy of the given Vec object.   | |
| Vec (const DATA_TYPE &val0, const DATA_TYPE &val1) | |
| Creates a new Vec initialized to the given values.   | |
| Vec (const DATA_TYPE &val0, const DATA_TYPE &val1, const DATA_TYPE &val2) | |
| Vec (const DATA_TYPE &val0, const DATA_TYPE &val1, const DATA_TYPE &val2, const DATA_TYPE &val3) | |
A representation of a vector with SIZE components using DATA_TYPE as the data type for each component.
| DATA_TYPE | the datatype to use for the components | |
| SIZE | the number of components this VecBase has | 
Definition at line 33 of file Vec.h.
The datatype used for the components of this Vec.
Reimplemented from gmtl::VecBase< DATA_TYPE, SIZE, meta::DefaultVecTag >.
| typedef Vec<DATA_TYPE, SIZE> gmtl::Vec< DATA_TYPE, SIZE >::VecType | 
Reimplemented from gmtl::VecBase< DATA_TYPE, SIZE, meta::DefaultVecTag >.
| enum gmtl::Vec::Params | 
The number of components this Vec has.
Reimplemented from gmtl::VecBase< DATA_TYPE, SIZE, meta::DefaultVecTag >.
Definition at line 41 of file Vec.h.
{ Size = SIZE };
| gmtl::Vec< DATA_TYPE, SIZE >::Vec | ( | const DATA_TYPE & | val0, | |
| const DATA_TYPE & | val1 | |||
| ) |  [inline] | 
        
Creates a new Vec initialized to the given values.
Definition at line 86 of file Vec.h.
: BaseType(val0, val1) { GMTL_STATIC_ASSERT( SIZE == 2, Out_Of_Bounds_Element_Access_In_Vec ); }
| gmtl::Vec< DATA_TYPE, SIZE >::Vec | ( | const DATA_TYPE & | val0, | |
| const DATA_TYPE & | val1, | |||
| const DATA_TYPE & | val2 | |||
| ) |  [inline] | 
        
Definition at line 92 of file Vec.h.
: BaseType(val0, val1, val2) { GMTL_STATIC_ASSERT( SIZE == 3, Out_Of_Bounds_Element_Access_In_Vec ); }
| gmtl::Vec< DATA_TYPE, SIZE >::Vec | ( | const DATA_TYPE & | val0, | |
| const DATA_TYPE & | val1, | |||
| const DATA_TYPE & | val2, | |||
| const DATA_TYPE & | val3 | |||
| ) |  [inline] | 
        
Definition at line 98 of file Vec.h.
: BaseType(val0, val1, val2, val3) { GMTL_STATIC_ASSERT( SIZE == 4, Out_Of_Bounds_Element_Access_In_Vec ); }
| VecType& gmtl::Vec< DATA_TYPE, SIZE >::operator= | ( | const VecBase< DATA_TYPE, SIZE, REP2 > & | rhs | ) |  [inline] | 
        
Assign from different rep.
Reimplemented from gmtl::VecBase< DATA_TYPE, SIZE, meta::DefaultVecTag >.
Definition at line 114 of file Vec.h.
   {
      BaseType::operator=(rhs);
      return *this;
   }
 1.7.1