geirs2Panic
Richard J. Mathar
Fits header keyword batch editor
|
A 2-dimensional rectangular boundary box parallel to the two Cartesian axes. More...
#include <Bbox2D.h>
Public Member Functions | |
Bbox2D (const Point2D &ptll, const Point2D &ptur) | |
Create a boundary box given two corner points. More... | |
Bbox2D () | |
Bbox2D | apply (const RotTrans2D &rt) const |
Compute the bounding box of the quadrangle that is rotated-translated. More... | |
void | include (const Point2D &pt) |
bool | isInside (const Point2D &pt) const |
Point2D | lowerRight () const |
Point2D | upperLeft () const |
Public Attributes | |
Point2D | limits [2] |
The two points at the lower left and upper right corner. More... | |
A 2-dimensional rectangular boundary box parallel to the two Cartesian axes.
Create a boundary box given two corner points.
pt1 | The first corner. |
pt2 | The second corner. |
Bbox2D::Bbox2D | ( | ) |
Create an invalid bounding box. Default ctor.
Bbox2D Bbox2D::apply | ( | const RotTrans2D & | rt | ) | const |
Compute the bounding box of the quadrangle that is rotated-translated.
[in] | rt | The rotation-translation to be applied |
void Bbox2D::include | ( | const Point2D & | pt | ) |
Extend the bounding box such that a point is inside.
[in] | pt | The point that may expand the bounding box. |
bool Bbox2D::isInside | ( | const Point2D & | pt | ) | const |
Decide whether a point is inside (or on the rim) of the bounding box.
[in] | pt | The point to be tested for insidedness. |
Point2D Bbox2D::lowerRight | ( | ) | const |
Compute the lower right corner of the bounding box.
Point2D Bbox2D::upperLeft | ( | ) | const |
Compute the upper left corner of the bounding box.
Point2D Bbox2D::limits[2] |
The two points at the lower left and upper right corner.