#include <Vec.h>
Inheritance diagram for gmtl::Vec:
Public Types | |
typedef DATA_TYPE | DataType |
The datatype used for the components of this Vec. More... | |
typedef VecBase< DATA_TYPE, SIZE > | BaseType |
The superclass type. More... | |
enum | Params { Size = SIZE } |
The number of components this Vec has. More... | |
Public Methods | |
Vec () | |
Default constructor. More... | |
Value constructors | |
Vec (const Vec< DATA_TYPE, SIZE > &rVec) | |
Make an exact copy of the given Vec object. More... | |
Vec (const VecBase< DATA_TYPE, SIZE > &rVec) | |
Make an exact copy of the given Vec object. More... | |
Vec (const DATA_TYPE &val0, const DATA_TYPE &val1) | |
Creates a new Vec initialized to the given values. More... | |
Vec (const DATA_TYPE &val0, const DATA_TYPE &val1, const DATA_TYPE &val2) | |
Make an exact copy of the given Vec object. More... | |
Vec (const DATA_TYPE &val0, const DATA_TYPE &val1, const DATA_TYPE &val2, const DATA_TYPE &val3) | |
Make an exact copy of the given Vec object. More... |
DATA_TYPE | the datatype to use for the components |
SIZE | the number of components this VecBase has |
Definition at line 56 of file Vec.h.
|
The superclass type.
Definition at line 66 of file Vec.h. Referenced by gmtl::Vec< DATA_TYPE, 4 >::Vec. |
|
The datatype used for the components of this Vec.
Reimplemented from gmtl::VecBase. |
|
The number of components this Vec has.
Reimplemented from gmtl::VecBase. Definition at line 63 of file Vec.h.
00063 { Size = SIZE }; |
|
Default constructor. All components are initialized to zero. Definition at line 72 of file Vec.h.
00073 { 00074 for (unsigned i = 0; i < SIZE; ++i) 00075 this->mData[i] = (DATA_TYPE)0; 00076 } |
|
Make an exact copy of the given Vec object.
Definition at line 85 of file Vec.h.
00086 : BaseType( static_cast<BaseType>( rVec ) ) 00087 { 00088 } |
|
Make an exact copy of the given Vec object.
Definition at line 90 of file Vec.h.
00091 : BaseType( rVec ) 00092 { 00093 } |
|
Creates a new Vec initialized to the given values.
Definition at line 98 of file Vec.h.
00099 : BaseType(val0, val1) 00100 { 00101 // @todo compile time assert is needed here 00102 gmtlASSERT( SIZE == 2 && "out of bounds element access in Point" ); 00103 } |
|
Make an exact copy of the given Vec object.
Definition at line 105 of file Vec.h.
00106 : BaseType(val0, val1, val2) 00107 { 00108 // @todo compile time assert is needed here 00109 gmtlASSERT( SIZE == 3 && "out of bounds element access in Point" ); 00110 } |
|
Make an exact copy of the given Vec object.
Definition at line 112 of file Vec.h.
00113 : BaseType(val0, val1, val2, val3) 00114 { 00115 // @todo compile time assert is needed here 00116 gmtlASSERT( SIZE == 4 && "out of bounds element access in Point" ); 00117 } |