# GeometricBoundingVolume¶

class GeometricBoundingVolume

Bases: BoundingVolume

This is another abstract class, for a general class of bounding volumes that actually enclose points in 3-d space, such as BSP’s and bounding spheres.

Inheritance diagram

int contains(GeometricBoundingVolume const *vol) const
int contains(LPoint3 const &point) const
int contains(LPoint3 const &a, LPoint3 const &b) const

Returns the appropriate set of IntersectionFlags to indicate the amount of intersection with the indicated volume.

Returns the appropriate set of IntersectionFlags to indicate the amount of intersection with the indicated point.

Returns the appropriate set of IntersectionFlags to indicate the amount of intersection with the indicated line segment.

bool extend_by(GeometricBoundingVolume const *vol)
bool extend_by(LPoint3 const &point)

Increases the size of the volume to include the given volume.

Increases the size of the volume to include the given point.

virtual LPoint3 get_approx_center(void) const = 0
static TypeHandle get_class_type(void)
virtual void xform(LMatrix4 const &mat) = 0