Templatized class that represents a two dimensional bounds with ranges [min_x, max_x] [min_y, max_y] inclusive.
More...
|
bool | contains (NumericType x, NumericType y) const |
| Returns true if the point is inside this range. More...
|
|
| GenericBounds () |
| Constructor for an empty bounds. More...
|
|
| GenericBounds (NumericType x0, NumericType y0, NumericType x1, NumericType y1) |
| Constructor for a non-empty initial bounds. More...
|
|
NumericType | getMaxX () const |
|
NumericType | getMaxY () const |
|
NumericType | getMinX () const |
|
NumericType | getMinY () const |
|
bool | isEmpty () const |
| Returns true if the range is empty. More...
|
|
void | merge (const GenericBounds< NumericType > &other) |
| Update the bounds to include the entirety of another bounds object. More...
|
|
bool | operator!= (const GenericBounds< NumericType > &other) const |
|
bool | operator== (const GenericBounds< NumericType > &other) const |
| comparison operator that requires all fields are equal More...
|
|
bool | overlaps (const GenericBounds< NumericType > &other) const |
| returns true if the two bounds overlap each other More...
|
|
void | reset () |
| Reset the bounds to be empty. More...
|
|
std::string | toString () const |
| Returns a string representation of the bounds. More...
|
|
void | touch (NumericType x, NumericType y) |
| Update the bounds to include the point (x, y) More...
|
|
void | update (NumericType x0, NumericType y0, NumericType x1, NumericType y1) |
| Update the bounds to include points (x0, y0) and (x1, y1) More...
|
|
template<typename NumericType>
class nav_core2::GenericBounds< NumericType >
Templatized class that represents a two dimensional bounds with ranges [min_x, max_x] [min_y, max_y] inclusive.
Definition at line 62 of file bounds.h.