code::MBRStructure Struct Reference

List of all members.

Public Member Functions

 MBRStructure ()
 MBRStructure (double _minx=0, double _miny=0, double _maxx=0, double _maxy=0)
CPoint getCenter ()
 get the center of the MBR in a given coordinate system
bool isCover (double x, double y)
 whehter this MBR covers a point
bool isCover (double x1, double y1, double x2, double y2)
 whehter this MBR covers a rectanle
MBRStructureoperator= (const MBRStructure &)
 overloaded equality function

Public Attributes

double minx
double miny
double maxx
double maxy

Friends

std::ostream & operator<< (std::ostream &, const MBRStructure &)
 overloaded output function

Constructor & Destructor Documentation

code::MBRStructure::MBRStructure (  )  [inline]

code::MBRStructure::MBRStructure ( double  _minx = 0,
double  _miny = 0,
double  _maxx = 0,
double  _maxy = 0 
)


Member Function Documentation

CPoint code::MBRStructure::getCenter (  ) 

get the center of the MBR in a given coordinate system

bool code::MBRStructure::isCover ( double  x1,
double  y1,
double  x2,
double  y2 
)

whehter this MBR covers a rectanle

bool code::MBRStructure::isCover ( double  x,
double  y 
)

whehter this MBR covers a point

MBRStructure& code::MBRStructure::operator= ( const MBRStructure  ) 

overloaded equality function


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const MBRStructure  
) [friend]

overloaded output function


Member Data Documentation

double code::MBRStructure::maxx

double code::MBRStructure::maxy

double code::MBRStructure::minx

double code::MBRStructure::miny


Generated on Fri May 4 13:40:12 2012 for WDSS-IIw2 by  doxygen 1.4.7