#include <rectangle.h>
Public Methods | |
void | operator+= (rectangle const &r) |
rectangle | operator+ (rectangle const &r) const |
bool | operator & (rectangle const &r) const |
bool | operator<= (rectangle const &r) const |
bool | operator>= (rectangle const &r) const |
bool | operator< (rectangle const &r) const |
bool | operator> (rectangle const &r) const |
bool | operator== (rectangle const &r) const |
bool | operator!= (rectangle const &r) const |
Public Attributes | |
coord_t | boundary [dim *2] |
Friends | |
coord_t FASTDB_DLL_ENTRY | distance (rectangle const &r, rectangle const &q) |
area_t | area (rectangle const &r) |
|
Intersect two rectangles |
|
Check if two rectangle are not the same |
|
Join two rectangles: construct enveloping rectangle |
|
Join two rectangles: construct enveloping rectangle |
|
Check if rectangle is strict subpart of other rectanle
|
|
Check if rectangle is part of other rectanle
|
|
Check if two rectangle are the same |
|
Check if rectangle is strict subpart of other rectanle
|
|
Check if rectangle is part of other rectanle
|
|
Caclulate area of rectangle |
|
Calculate distance between two rectangles |
|
Boundary array contains coordinates of two vertices specifying rectangle of "dim" dimmension. First vertex has coordinaes (boundary[0], ..., boundary[dim]) Second vertext has coordinates (boundary[dim], ..., boundary[dim*2-1]) Precondition: for i = 0, dim : boundary[i] <= boundary[dim+i] |