2D axis orthothogonal bounding box.
More...
#include <mia/2d/boundingbox.hh>
2D axis orthothogonal bounding box.
Definition at line 38 of file boundingbox.hh.
◆ C2DBoundingBox() [1/2]
C2DBoundingBox::C2DBoundingBox |
( |
| ) |
|
◆ C2DBoundingBox() [2/2]
Construct a new bounding box with
- Parameters
-
begin | left lower corner |
end | right upper corner |
◆ add()
void C2DBoundingBox::add |
( |
const C2DFVector & |
point | ) |
|
Change the box to include the given point
- Parameters
-
◆ empty()
bool C2DBoundingBox::empty |
( |
| ) |
const |
- Returns
- true if the box is not empty
◆ enlarge()
void C2DBoundingBox::enlarge |
( |
float |
boundary | ) |
|
enlarge the bounding box by a given amount
- Parameters
-
◆ get_begin()
- Returns
- left lower bounding box point
◆ get_end()
- Returns
- right upper bounding box point
◆ get_grid_begin()
C2DIVector C2DBoundingBox::get_grid_begin |
( |
| ) |
const |
- Returns
- left lower grid point
◆ get_grid_end()
- Returns
- right upper grid point
◆ get_grid_size()
C2DBounds C2DBoundingBox::get_grid_size |
( |
| ) |
const |
- Returns
- size of bounding box in the grid
◆ get_size()
- Returns
- size of bounding box
◆ unite()
Combine two bounding boxes
- Parameters
-
The documentation for this class was generated from the following file: