Templatized class that represents a two dimensional bounds with ranges [min_x, max_x] [min_y, max_y] inclusive. More...
#include <bounds.h>
Public Member Functions | |
GenericBounds () | |
Constructor for an empty bounds. | |
GenericBounds (NumericType x0, NumericType y0, NumericType x1, NumericType y1) | |
Constructor for a non-empty initial bounds. | |
NumericType | getMaxX () const |
NumericType | getMaxY () const |
NumericType | getMinX () const |
NumericType | getMinY () const |
bool | isEmpty () const |
Returns true if the range is empty. | |
void | merge (const GenericBounds< NumericType > &other) |
Update the bounds to include the entirety of another bounds object. | |
void | reset () |
Reset the bounds to be empty. | |
std::string | toString () const |
Returns a string representation of the bounds. | |
void | touch (NumericType x, NumericType y) |
Update the bounds to include the point (x, y) | |
void | update (NumericType x0, NumericType y0, NumericType x1, NumericType y1) |
Update the bounds to include points (x0, y0) and (x1, y1) | |
Protected Attributes | |
NumericType | max_x_ |
NumericType | max_y_ |
NumericType | min_x_ |
NumericType | min_y_ |
Templatized class that represents a two dimensional bounds with ranges [min_x, max_x] [min_y, max_y] inclusive.
nav_core2::GenericBounds< NumericType >::GenericBounds | ( | ) | [inline] |
nav_core2::GenericBounds< NumericType >::GenericBounds | ( | NumericType | x0, |
NumericType | y0, | ||
NumericType | x1, | ||
NumericType | y1 | ||
) | [inline] |
NumericType nav_core2::GenericBounds< NumericType >::getMaxX | ( | ) | const [inline] |
NumericType nav_core2::GenericBounds< NumericType >::getMaxY | ( | ) | const [inline] |
NumericType nav_core2::GenericBounds< NumericType >::getMinX | ( | ) | const [inline] |
NumericType nav_core2::GenericBounds< NumericType >::getMinY | ( | ) | const [inline] |
bool nav_core2::GenericBounds< NumericType >::isEmpty | ( | ) | const [inline] |
void nav_core2::GenericBounds< NumericType >::merge | ( | const GenericBounds< NumericType > & | other | ) | [inline] |
void nav_core2::GenericBounds< NumericType >::reset | ( | ) | [inline] |
std::string nav_core2::GenericBounds< NumericType >::toString | ( | ) | const [inline] |
void nav_core2::GenericBounds< NumericType >::touch | ( | NumericType | x, |
NumericType | y | ||
) | [inline] |
void nav_core2::GenericBounds< NumericType >::update | ( | NumericType | x0, |
NumericType | y0, | ||
NumericType | x1, | ||
NumericType | y1 | ||
) | [inline] |
NumericType nav_core2::GenericBounds< NumericType >::max_x_ [protected] |
NumericType nav_core2::GenericBounds< NumericType >::max_y_ [protected] |
NumericType nav_core2::GenericBounds< NumericType >::min_x_ [protected] |
NumericType nav_core2::GenericBounds< NumericType >::min_y_ [protected] |