17 INLINE_MATHUTIL BoundingVolume::
30 return (_flags & F_empty) != 0;
45 return (_flags & F_infinite) != 0;
69 return vol->extend_other(
this);
82 return IF_no_intersection;
85 return IF_possible | IF_some | IF_all;
88 return IF_possible | IF_some;
94 return vol->contains_other(
this);
97 INLINE_MATHUTIL std::ostream &operator << (std::ostream &out,
const BoundingVolume &bound) {
int contains(const BoundingVolume *vol) const
Returns the appropriate set of IntersectionFlags to indicate the amount of intersection with the indi...
bool is_empty() const
Any kind of volume might be empty.
bool is_infinite() const
The other side of the empty coin is an infinite volume.
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 extend_by(const BoundingVolume *vol)
Increases the size of the volume to include the given volume.