BoundingBox Class Template Reference
[Miscellaneous Tools]

#include <xy.h>

List of all members.


Detailed Description

template<typename T>
class lemon::BoundingBox< T >

A class to calculate or store the bounding box of plainvectors.

Author:
Attila Bernath

Definition at line 168 of file xy.h.

Public Member Functions

 BoundingBox ()
 Default constructor: an empty bounding box.
 BoundingBox (xy< T > a)
 Constructing the instance from one point.
bool empty () const
 Is there any point added.
xy< T > bottomLeft () const
 Gives back the bottom left corner (if the bounding box is empty, then the return value is not defined).
xy< T > topRight () const
 Gives back the top right corner (if the bounding box is empty, then the return value is not defined).
bool inside (const xy< T > &u)
 Checks whether a point is inside a bounding box.
BoundingBoxoperator+= (const xy< T > &u)
 Increments a bounding box with a point.
BoundingBox operator+ (const xy< T > &u)
 Sums a bounding box and a point.
BoundingBoxoperator+= (const BoundingBox &u)
 Increments a bounding box with an other bounding box.
BoundingBox operator+ (const BoundingBox &u)
 Sums two bounding boxes.


The documentation for this class was generated from the following file:
Generated on Thu Sep 30 12:18:40 2004 for LEMON by doxygen 1.3.8