Base type for vector-like objects including Points and Vectors. More...
#include <VecBase.h>

Public Types | |
| enum | Params { Size = SIZE } |
The number of components this VecB has. More... | |
| typedef DATA_TYPE | DataType |
| The datatype used for the components of this VecB. | |
Public Member Functions | |
| VecBase () | |
| VecBase (const REP &rep) | |
| DATA_TYPE | operator[] (const unsigned i) |
| Conversion operator to default vecbase type. | |
| const DATA_TYPE | operator[] (const unsigned i) const |
Protected Attributes | |
| const REP | expRep |
Base type for vector-like objects including Points and Vectors.
It is templated on the component datatype as well as the number of components that make it up.
| DATA_TYPE | the datatype to use for the components | |
| SIZE | the number of components this VecB has | |
| REP | the representation to use for the vector. (expression template or default) |
Definition at line 40 of file VecBase.h.
| typedef DATA_TYPE gmtl::VecBase< DATA_TYPE, SIZE, REP >::DataType |
The datatype used for the components of this VecB.
Reimplemented in gmtl::Point< DATA_TYPE, SIZE >, and gmtl::Point< DATA_TYPE, 3 >.
| enum gmtl::VecBase::Params |
The number of components this VecB has.
Reimplemented in gmtl::AxisAngle< DATA_TYPE >, gmtl::Point< DATA_TYPE, SIZE >, and gmtl::Point< DATA_TYPE, 3 >.
Definition at line 50 of file VecBase.h.
{ Size = SIZE };
| gmtl::VecBase< DATA_TYPE, SIZE, REP >::VecBase | ( | ) | [inline] |
| gmtl::VecBase< DATA_TYPE, SIZE, REP >::VecBase | ( | const REP & | rep | ) | [inline] |
| DATA_TYPE gmtl::VecBase< DATA_TYPE, SIZE, REP >::operator[] | ( | const unsigned | i | ) | [inline] |
Conversion operator to default vecbase type.
Return the value at given location.
Definition at line 69 of file VecBase.h.
{
gmtlASSERT(i < SIZE);
return expRep[i];
}
| const DATA_TYPE gmtl::VecBase< DATA_TYPE, SIZE, REP >::operator[] | ( | const unsigned | i | ) | const [inline] |
Definition at line 74 of file VecBase.h.
{
gmtlASSERT(i < SIZE);
return expRep[i];
}
const REP gmtl::VecBase< DATA_TYPE, SIZE, REP >::expRep [protected] |
1.7.1