19 for (
int ind=0; ind<3; ++ind) {
34 for (
int ind=0; ind<3; ++ind) {
35 const double p = point[ind];
36 const double b1 =
m_bounds.first[ind];
37 const double b2 =
m_bounds.second[ind];
40 if (p<b1 or p>b2)
return false;
44 if (p<b2 or p>b1)
return false;
std::pair< Point, Point > Ray
A line segment running from a first (tail) to a second (head) point.
bool inside(const Point &point) const
Return true if point is inside bounding box.
BoundingBox()
Create a bounding box without an initial point or ray.
void operator()(const Point &p)
Enlarge bounds to hold point.