BoundBox.h
Go to the documentation of this file.
std::ostream & operator<<(std::ostream &os, const Portage::IsotheticBBox< D > &box)
Definition: BoundBox.h:208
void clear()
Re-initialize box limits to default values.
Definition: BoundBox.h:52
const Point< D > & getMax() const
Return the maximum of the bounding box.
Definition: BoundBox.h:105
bool intersect(const Point< D > &p) const
Determine if the Point p is within the bounding box.
Definition: BoundBox.h:133
bool intersect(const IsotheticBBox< D > &b) const
Determine if the IsotheticBBox b is within the bounding box.
Definition: BoundBox.h:140
double getMin(int i) const
Return the minimum of the bonding box along axis i.
Definition: BoundBox.h:102
bool interval(const IsotheticBBox< D > &box, const Point< D > &orig, const Vector< D > &magdir, double &a, double &b)
Definition: BoundBox.h:176
int longAxis() const
Find which axis is the longest of the bounding box.
Definition: BoundBox.h:111
bool empty() const
Tests if the bounding box contains space.
Definition: BoundBox.h:55
double center(int axis) const
Calculate the center aint the axis axis.
Definition: BoundBox.h:90
double volume() const
Calculate the volume of the bounding box.
Definition: BoundBox.h:125
void bulge(double epsilon)
Expand the box by an additive constant.
Definition: BoundBox.h:78
bool approxEq(const IsotheticBBox< D > &box1, const IsotheticBBox< D > &box2, const double &tol)
Determine if two IsotheticBBox elements are coincident in space.
Definition: BoundBox.h:164
double radius(bool doSqrt=true) const
Calculate distance from the origin to the center of the bounding box.
Definition: BoundBox.h:93
const Point< D > & getMin() const
Return the minimum of the bounding box.
Definition: BoundBox.h:99
void add(const Point< D > &p)
Update the bounding box by adding an additional Point.
Definition: BoundBox.h:59
Definition: coredriver.h:42
double getMax(int i) const
Return the maximum of the bounding box along axis i.
Definition: BoundBox.h:108
An isothetic (axis-aligned) N-dimensional bounding box.
Definition: BoundBox.h:46
void add(const IsotheticBBox< D > &box)
Update the bounding box by adding the extents of another IsotheticBBox.
Definition: BoundBox.h:72
Point< D > center() const
Calculate the Point of the center of the bounding box.
Definition: BoundBox.h:87