Go to the documentation of this file.
7 #ifndef INCLUDE_JET_BOUNDING_BOX_H_
8 #define INCLUDE_JET_BOUNDING_BOX_H_
20 template <
typename T,
size_t N>
24 N > 0,
"Size of static-sized box should be greater than zero.");
77 #include "detail/bounding_box-inl.h"
79 #endif // INCLUDE_JET_BOUNDING_BOX_H_
BoundingBox(const VectorType &point1, const VectorType &point2)
Constructs a box that tightly covers two points.
void merge(const VectorType &point)
Merges this and other point.
VectorType lowerCorner
Lower corner of the bounding box.
Definition: bounding_box.h:29
VectorType midPoint() const
Returns the mid-point of this box.
bool overlaps(const BoundingBox &other) const
Returns true of this box and other box overlaps.
Generic statically-sized N-D vector class.
Definition: vector.h:31
BoundingBox()
Default constructor.
T diagonalLengthSquared() const
Returns squared diagonal length of this box.
Definition: advection_solver2.h:18
void reset()
Resets this box to initial state (min=infinite, max=-infinite).
void merge(const BoundingBox &other)
Merges this and other boxes.
VectorType upperCorner
Upper corner of the bounding box.
Definition: bounding_box.h:32
BoundingBox(const BoundingBox &other)
Constructs a box with other box instance.
T diagonalLength() const
Returns diagonal length of this box.
Generic N-D axis-aligned bounding box class.
Definition: bounding_box.h:21
bool contains(const VectorType &point) const
Returns true if the input point is inside of this box.
Vector< T, N > VectorType
Definition: bounding_box.h:24