small class which defines a vector with 3 elements More...
#include <libmwaw_internal.hxx>
| Classes | |
| struct | PosSizeLt | 
| internal struct used to create sorted map, sorted by X, Y, Z  More... | |
| Public Types | |
| typedef std::map< MWAWVec3< T >, T, struct PosSizeLt > | Map | 
| map of MWAWVec3  More... | |
| Public Member Functions | |
| MWAWVec3 (T xx=0, T yy=0, T zz=0) | |
| constructor  More... | |
| template<class U > | |
| MWAWVec3 (MWAWVec3< U > const &p) | |
| generic copy constructor  More... | |
| T | x () const | 
| first element  More... | |
| T | y () const | 
| second element  More... | |
| T | z () const | 
| third element  More... | |
| T | operator[] (int c) const | 
| operator[]  More... | |
| T & | operator[] (int c) | 
| operator[]  More... | |
| void | set (T xx, T yy, T zz) | 
| resets the three elements  More... | |
| void | setX (T xx) | 
| resets the first element  More... | |
| void | setY (T yy) | 
| resets the second element  More... | |
| void | setZ (T zz) | 
| resets the third element  More... | |
| void | add (T dx, T dy, T dz) | 
| increases the actuals values by dx, dy, dz  More... | |
| MWAWVec3< T > & | operator+= (MWAWVec3< T > const &p) | 
| operator+=  More... | |
| MWAWVec3< T > & | operator-= (MWAWVec3< T > const &p) | 
| operator-=  More... | |
| template<class U > | |
| MWAWVec3< T > & | operator *= (U scale) | 
| generic operator*=  More... | |
| bool | operator== (MWAWVec3< T > const &p) const | 
| comparison==  More... | |
| bool | operator!= (MWAWVec3< T > const &p) const | 
| comparison!=  More... | |
| bool | operator< (MWAWVec3< T > const &p) const | 
| comparison<: which first compares x values, then y values then z values.  More... | |
| int | cmp (MWAWVec3< T > const &p) const | 
| a comparison function: which first compares x values, then y values then z values.  More... | |
| Protected Attributes | |
| T | m_val [3] | 
| the values  More... | |
| Friends | |
| MWAWVec3< T > | operator+ (MWAWVec3< T > const &p1, MWAWVec3< T > const &p2) | 
| operator+  More... | |
| MWAWVec3< T > | operator- (MWAWVec3< T > const &p1, MWAWVec3< T > const &p2) | 
| operator-  More... | |
| template<class U > | |
| MWAWVec3< T > | operator * (U scale, MWAWVec3< T > const &p1) | 
| generic operator*  More... | |
| std::ostream & | operator<< (std::ostream &o, MWAWVec3< T > const &f) | 
| operator<<: prints data in form "XxYxZ"  More... | |
small class which defines a vector with 3 elements
constructor
| 
 | inlineexplicit | 
generic copy constructor
| 
 | inline | 
increases the actuals values by dx, dy, dz
a comparison function: which first compares x values, then y values then z values.
Referenced by MWAWVec3< int >::operator!=(), MWAWVec3< T >::PosSizeLt::operator()(), MWAWVec3< int >::operator<(), and MWAWVec3< int >::operator==().
generic operator*=
comparison!=
operator+=
operator-=
comparison<: which first compares x values, then y values then z values.
comparison==
| 
 | inline | 
operator[]
| 
 | inline | 
operator[]
| 
 | inline | 
resets the three elements
| 
 | inline | 
resets the first element
| 
 | inline | 
resets the second element
| 
 | inline | 
resets the third element
| 
 | inline | 
first element
| 
 | inline | 
second element
| 
 | inline | 
third element
| 
 | friend | 
generic operator*
| 
 | friend | 
operator+
| 
 | friend | 
operator-
| 
 | friend | 
operator<<: prints data in form "XxYxZ"
| 
 | protected | 
the values
Referenced by MWAWVec3< int >::add(), MWAWVec3< int >::cmp(), MWAWVec3< int >::MWAWVec3(), MWAWVec3< int >::operator *=(), MWAWVec3< int >::operator+=(), MWAWVec3< int >::operator-=(), MWAWVec3< int >::operator[](), MWAWVec3< int >::set(), MWAWVec3< int >::setX(), MWAWVec3< int >::setY(), MWAWVec3< int >::setZ(), MWAWVec3< int >::x(), MWAWVec3< int >::y(), and MWAWVec3< int >::z().