#include <rectangle.h>
Public Types | |
| enum | { dim = RECTANGLE_DIMENSION } |
| typedef bool(rectangle::* | comparator )(rectangle const &r) const |
Public Member Functions | |
| void | operator+= (rectangle const &r) |
| Join two rectangles: construct enveloping rectangle. | |
| rectangle | operator+ (rectangle const &r) const |
| Join two rectangles: construct enveloping rectangle. | |
| bool | operator & (rectangle const &r) const |
| Intersect two rectangles. | |
| bool | operator<= (rectangle const &r) const |
| Check if rectangle is part of other rectanle. | |
| bool | operator>= (rectangle const &r) const |
| Check if rectangle is part of other rectanle. | |
| bool | operator< (rectangle const &r) const |
| Check if rectangle is strict subpart of other rectanle. | |
| bool | operator> (rectangle const &r) const |
| Check if rectangle is strict subpart of other rectanle. | |
| bool | operator== (rectangle const &r) const |
| Check if two rectangle are the same. | |
| bool | operator!= (rectangle const &r) const |
| Check if two rectangle are not the same. | |
Public Attributes | |
| coord_t | boundary [dim *2] |
| Boundary array contains coordinates of two vertices specifying rectangle of "dim" dimmension. | |
Friends | |
| coord_t FASTDB_DLL_ENTRY | distance (rectangle const &r, rectangle const &q) |
| Calculate distance between two rectangles. | |
| area_t | area (rectangle const &r) |
| Caclulate area of rectangle. | |
| typedef bool(rectangle::* comparator)(rectangle const &r) const |
| void operator+= | ( | rectangle const & | r | ) | [inline] |
Join two rectangles: construct enveloping rectangle.
Join two rectangles: construct enveloping rectangle.
| bool operator & | ( | rectangle const & | r | ) | const [inline] |
Intersect two rectangles.
| bool operator<= | ( | rectangle const & | r | ) | const [inline] |
| bool operator>= | ( | rectangle const & | r | ) | const [inline] |
| bool operator< | ( | rectangle const & | r | ) | const [inline] |
| bool operator> | ( | rectangle const & | r | ) | const [inline] |
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]