The bounding box type that is used by KDTree as input. More...
Public Types | |
using | point_t = util::point< double, DIM > |
Geometric point to represent coordinates. | |
Public Member Functions | |
constexpr point_t | center () const |
Centroid. | |
constexpr bool | intersects (const BBox &box) const |
Determine if the two bounding boxes intersect. | |
constexpr void | operator+= (const BBox &rhs) |
Union rhs into this BBox. | |
constexpr BBox & | operator+= (const point_t &p) |
Extend box as needed to contain a point. | |
constexpr point_t | size () const |
Size of the box. | |
Static Public Member Functions | |
static constexpr auto | empty () |
Return an empty BBox. | |
Public Attributes | |
point_t | lower |
The upper and lower corners of the box. | |
The bounding box type that is used by KDTree as input.
using point_t = util::point<double, DIM> |
Geometric point to represent coordinates.
Determine if the two bounding boxes intersect.
Extend box as needed to contain a point.
Union rhs into this BBox.