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