#include <Bounding_Box.hpp>
Public Member Functions | |
BoundingBox () | |
double | max_x () |
double | max_y () |
double | min_x () |
double | min_y () |
void | reset () |
Resets the contents of *bounding_box* to empty. | |
void | update (double x, double y) |
Adds the point (*x*, *y) to *bounding_box*. | |
Private Attributes | |
double | maximum_x |
double | maximum_y |
double | minimum_x |
double | minimum_y |
Definition at line 7 of file Bounding_Box.hpp.
Definition at line 7 of file Bounding_Box.cpp.
double BoundingBox::max_x | ( | ) | [inline] |
Definition at line 27 of file Bounding_Box.hpp.
double BoundingBox::max_y | ( | ) | [inline] |
Definition at line 29 of file Bounding_Box.hpp.
double BoundingBox::min_x | ( | ) | [inline] |
Definition at line 26 of file Bounding_Box.hpp.
double BoundingBox::min_y | ( | ) | [inline] |
Definition at line 28 of file Bounding_Box.hpp.
void BoundingBox::reset | ( | ) |
Resets the contents of *bounding_box* to empty.
bounding_box | to be reset. |
Bounding_Box__reset*() will reset *bounding_box* to the empty state.
Definition at line 16 of file Bounding_Box.cpp.
void BoundingBox::update | ( | double | x, |
double | y | ||
) |
Adds the point (*x*, *y) to *bounding_box*.
bounding_box | to be updated. |
x | is the X value to update. |
y | is the Y value to update. |
Bounding_Box__update*() will update the contents of *bounding_box* to enclose (*x*, *y*).
Definition at line 32 of file Bounding_Box.cpp.
double BoundingBox::maximum_x [private] |
Definition at line 9 of file Bounding_Box.hpp.
double BoundingBox::maximum_y [private] |
Definition at line 11 of file Bounding_Box.hpp.
double BoundingBox::minimum_x [private] |
Definition at line 10 of file Bounding_Box.hpp.
double BoundingBox::minimum_y [private] |
Definition at line 12 of file Bounding_Box.hpp.