List of all members.
Public Member Functions |
T & | x () |
| Returns the first, ie x–element.
|
T & | y () |
| Returns the second, ie y–element.
|
T & | z () |
| Returns the second, ie y–element.
|
const T & | x () const |
| Returns the first, ie x–element.
|
const T & | y () const |
| Returns the second, ie y–element.
|
const T & | z () const |
| Returns the third, ie z–element.
|
| Position_ () |
| Default constructor.
|
| Position_ (T ax, T ay, T az) |
| Construct with a n individual values.
|
| Position_ (T x) |
| Construct with one value. All components are set to the value.
|
| operator T * () |
| Returns a pointer to the first element.
|
T | volume () const |
| Returns the n-dim volume, ie the product of all components.
|
T | sum () const |
| Returns the sum of all components.
|
double | length () const |
| Returns the length of the vector.
|
void | stretch (const Position_< T > &A) |
| Stretches the vector componentwise with another vector.
|
void | limitto (const Position_< T > &pos) |
| If any component of the vector is larger than pos, it is limited to the value given in pos.
|
T | arraypos (const Position_< T > &pos) const |
| Assuming pos is the size of an n-dim array, this converts the vector to a position in the according one dimensional array.
|
template<class T3 > |
| operator Position_< T3 > () const |
|
T & | operator[] (const int i) |
T | operator[] (const int i) const |
| Return the i-th value.
|
Public Attributes |
T | P [3] |
| The array containing the values.
|
The documentation for this class was generated from the following file: