17 INLINE_MATHUTIL GeometricBoundingVolume::
18 GeometricBoundingVolume() {
19 #ifdef DO_MEMORY_USAGE
37 return extend_by_point(point);
54 around(
const LPoint3 *first,
const LPoint3 *last) {
57 return around_points(first, last);
77 contains(
const LPoint3 &point)
const {
79 return IF_no_intersection;
82 return contains_point(point);
90 contains(
const LPoint3 &a,
const LPoint3 &b)
const {
92 return IF_no_intersection;
95 return contains_lineseg(a, b);
This is an abstract class for any volume in any sense which can be said to define the locality of ref...
bool extend_by(const BoundingVolume *vol)
Increases the size of the volume to include the given volume.
bool is_empty() const
Any kind of volume might be empty.
int contains(const BoundingVolume *vol) const
Returns the appropriate set of IntersectionFlags to indicate the amount of intersection with the indi...
bool around(const BoundingVolume **first, const BoundingVolume **last)
Resets the volume to enclose only the volumes indicated.
This is another abstract class, for a general class of bounding volumes that actually enclose points ...
int contains(const GeometricBoundingVolume *vol) const
Returns the appropriate set of IntersectionFlags to indicate the amount of intersection with the indi...
bool extend_by(const GeometricBoundingVolume *vol)
Increases the size of the volume to include the given volume.
bool around(const GeometricBoundingVolume **first, const GeometricBoundingVolume **last)
Resets the volume to enclose only the volumes indicated.
static void update_type(ReferenceCount *ptr, TypeHandle type)
Associates the indicated type with the given pointer.