Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

ixion::rectangle Struct Template Reference

#include <ixlib_geometry.hh>

List of all members.

Public Methods

 rectangle ()
 rectangle (T ax, T ay, T bx, T by)
 rectangle (coord_vector< T > const &a, coord_vector< T > const &b)
template<class TP>  rectangle (rectangle< TP > const &src)
template<class TP> rectangle& operator= (rectangle< TP > const &src)
getSizeX () const
getSizeY () const
bool doesContain (T x, T y) const
bool doesContain (coord_vector< T > const &point) const
bool doesIntersect (rectangle< T > const &rect) const
bool isEmpty () const
void clear ()
void set (T ax, T ay, T bx, T by)
template<class TP> void set (coord_vector< TP > const &a, coord_vector< TP > const &b)
void setSize (T sizex, T sizey)
template<class TP> void setSize (coord_vector< TP > const &p)
void resize (T dx, T dy)
template<class TP> void resize (coord_vector< TP > const &p)
void move (T dx, T dy)
template<class TP> void move (coord_vector< TP > const &p)
void unite (rectangle const &rect)
void intersect (rectangle const &rect)
template<class TP> rectangle& operator+= (coord_vector< TP > const &p)
template<class TP> rectangle operator+ (coord_vector< TP > const &p)
template<class TP> rectangle& operator-= (coord_vector< TP > const &p)
template<class TP> rectangle operator- (coord_vector< TP > const &p)

Public Attributes

coord_vector<T> A
coord_vector<T> B

template<class T> struct ixion::rectangle


Constructor & Destructor Documentation

template<class T>
ixion::rectangle<T>::rectangle<T> ( ) [inline]
 

Definition at line 185 of file ixlib_geometry.hh.

template<class T>
ixion::rectangle<T>::rectangle<T> ( T ax,
T ay,
T bx,
T by ) [inline]
 

Definition at line 187 of file ixlib_geometry.hh.

template<class T>
ixion::rectangle<T>::rectangle<T> ( coord_vector< T > const & a,
coord_vector< T > const & b ) [inline]
 

Definition at line 190 of file ixlib_geometry.hh.

template<class T>
template<class TP>
ixion::rectangle<T>::rectangle<T> ( rectangle< TP > const & src ) [inline]
 

Definition at line 194 of file ixlib_geometry.hh.


Member Function Documentation

template<class T>
void ixion::rectangle<T>::clear ( ) [inline]
 

Definition at line 220 of file ixlib_geometry.hh.

template<class T>
bool ixion::rectangle<T>::doesContain ( coord_vector< T > const & point ) const [inline]
 

Definition at line 211 of file ixlib_geometry.hh.

template<class T>
bool ixion::rectangle<T>::doesContain ( T x,
T y ) const [inline]
 

Definition at line 209 of file ixlib_geometry.hh.

template<class T>
bool ixion::rectangle<T>::doesIntersect ( rectangle< T > const & rect ) const [inline]
 

Definition at line 214 of file ixlib_geometry.hh.

template<class T>
T ixion::rectangle<T>::getSizeX ( ) const [inline]
 

Definition at line 205 of file ixlib_geometry.hh.

template<class T>
T ixion::rectangle<T>::getSizeY ( ) const [inline]
 

Definition at line 207 of file ixlib_geometry.hh.

template<class T>
void ixion::rectangle<T>::intersect ( rectangle<T> const & rect )
 

template<class T>
bool ixion::rectangle<T>::isEmpty ( ) const [inline]
 

Definition at line 217 of file ixlib_geometry.hh.

template<class T>
template<class TP>
void ixion::rectangle<T>::move ( coord_vector< TP > const & p ) [inline]
 

Definition at line 248 of file ixlib_geometry.hh.

template<class T>
void ixion::rectangle<T>::move ( T dx,
T dy ) [inline]
 

Definition at line 243 of file ixlib_geometry.hh.

Referenced by operator+=(), and operator-=().

template<class T>
template<class TP>
rectangle<T> ixion::rectangle<T>::operator+ ( coord_vector< TP > const & p ) [inline]
 

Definition at line 261 of file ixlib_geometry.hh.

template<class T>
template<class TP>
rectangle<T> & ixion::rectangle<T>::operator+= ( coord_vector< TP > const & p ) [inline]
 

Definition at line 256 of file ixlib_geometry.hh.

template<class T>
template<class TP>
rectangle<T> ixion::rectangle<T>::operator- ( coord_vector< TP > const & p ) [inline]
 

Definition at line 272 of file ixlib_geometry.hh.

template<class T>
template<class TP>
rectangle<T> & ixion::rectangle<T>::operator-= ( coord_vector< TP > const & p ) [inline]
 

Definition at line 267 of file ixlib_geometry.hh.

template<class T>
template<class TP>
rectangle<T> & ixion::rectangle<T>::operator= ( rectangle< TP > const & src ) [inline]
 

Definition at line 199 of file ixlib_geometry.hh.

template<class T>
template<class TP>
void ixion::rectangle<T>::resize ( coord_vector< TP > const & p ) [inline]
 

Definition at line 239 of file ixlib_geometry.hh.

template<class T>
void ixion::rectangle<T>::resize ( T dx,
T dy ) [inline]
 

Definition at line 236 of file ixlib_geometry.hh.

template<class T>
template<class TP>
void ixion::rectangle<T>::set ( coord_vector< TP > const & a,
coord_vector< TP > const & b ) [inline]
 

Definition at line 226 of file ixlib_geometry.hh.

template<class T>
void ixion::rectangle<T>::set ( T ax,
T ay,
T bx,
T by ) [inline]
 

Definition at line 223 of file ixlib_geometry.hh.

template<class T>
template<class TP>
void ixion::rectangle<T>::setSize ( coord_vector< TP > const & p ) [inline]
 

Definition at line 232 of file ixlib_geometry.hh.

template<class T>
void ixion::rectangle<T>::setSize ( T sizex,
T sizey ) [inline]
 

Definition at line 229 of file ixlib_geometry.hh.

template<class T>
void ixion::rectangle<T>::unite ( rectangle<T> const & rect )
 


Member Data Documentation

template<class T>
coord_vector<T> ixion::rectangle<T>::A
 

Definition at line 183 of file ixlib_geometry.hh.

template<class T>
coord_vector<T> ixion::rectangle<T>::B
 

Definition at line 183 of file ixlib_geometry.hh.


The documentation for this struct was generated from the following file:
Generated at Tue Apr 17 18:29:46 2001 for ixlib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001