15 #ifndef BOUNDINGPLANE_H 16 #define BOUNDINGPLANE_H 18 #include "pandabase.h" 20 #include "geometricBoundingVolume.h" 34 INLINE_MATHUTIL BoundingPlane(
const LPlane &plane);
35 ALLOC_DELETED_CHAIN(BoundingPlane);
40 virtual LPoint3 get_approx_center()
const;
41 virtual void xform(
const LMatrix4 &mat);
43 virtual void output(ostream &out)
const;
46 INLINE_MATHUTIL
const LPlane &get_plane()
const;
58 virtual bool extend_by_plane(
const BoundingPlane *plane);
61 virtual int contains_box(
const BoundingBox *box)
const;
62 virtual int contains_line(
const BoundingLine *line)
const;
63 virtual int contains_plane(
const BoundingPlane *plane)
const;
73 static void init_type() {
74 GeometricBoundingVolume::init_type();
75 register_type(_type_handle,
"BoundingPlane",
76 GeometricBoundingVolume::get_class_type());
79 return get_class_type();
81 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
90 #include "boundingPlane.I" An axis-aligned bounding box; that is, a minimum and maximum coordinate triple.
This defines a bounding sphere, consisting of a center and a radius.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
This funny bounding volume is an infinite plane that divides space into two regions: the part behind ...
virtual const BoundingPlane * as_bounding_plane() const
Virtual downcast method.
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 ...
This is a 4-by-4 transform matrix.
TypeHandle is the identifier used to differentiate C++ class types.
This defines a bounding convex hexahedron.
This funny bounding volume is an infinite line with no thickness and extending to infinity in both di...