20 INLINE_MATHUTIL BoundingVolume::
36 return (_flags & F_empty) != 0;
57 return (_flags & F_infinite) != 0;
87 return vol->extend_other(
this);
103 return IF_no_intersection;
106 return IF_possible | IF_some | IF_all;
109 return IF_possible | IF_some;
115 return vol->contains_other(
this);
118 INLINE_MATHUTIL ostream &operator << (ostream &out,
const BoundingVolume &bound) {
This is an abstract class for any volume in any sense which can be said to define the locality of ref...
void set_infinite()
Marks the volume as infinite, even if it is normally finite.
bool is_infinite() const
The other side of the empty coin is an infinite volume.
bool is_empty() const
Any kind of volume might be empty.
bool extend_by(const BoundingVolume *vol)
Increases the size of the volume to include the given volume.
int contains(const BoundingVolume *vol) const
Returns the appropriate set of IntersectionFlags to indicate the amount of intersection with the indi...