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 | |
MBRStructure & | operator= (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 |
code::MBRStructure::MBRStructure | ( | ) | [inline] |
code::MBRStructure::MBRStructure | ( | double | _minx = 0 , |
|
double | _miny = 0 , |
|||
double | _maxx = 0 , |
|||
double | _maxy = 0 | |||
) |
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
std::ostream& operator<< | ( | std::ostream & | , | |
const MBRStructure & | ||||
) | [friend] |
overloaded output function
double code::MBRStructure::maxx |
double code::MBRStructure::maxy |
double code::MBRStructure::minx |
double code::MBRStructure::miny |