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);
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);
int contains(const BoundingVolume *vol) const
Returns the appropriate set of IntersectionFlags to indicate the amount of intersection with the indi...
int contains(const GeometricBoundingVolume *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.
This is an abstract class for any volume in any sense which can be said to define the locality of ref...
This is another abstract class, for a general class of bounding volumes that actually enclose points ...
static void update_type(ReferenceCount *ptr, TypeHandle type)
Associates the indicated type with the given pointer.
bool around(const BoundingVolume **first, const BoundingVolume **last)
Resets the volume to enclose only the volumes indicated.
bool extend_by(const BoundingVolume *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.
bool extend_by(const GeometricBoundingVolume *vol)
Increases the size of the volume to include the given volume.