34 INLINE_MATHUTIL BoundingHexahedron();
37 BoundingHexahedron(
const LFrustum &frustum,
bool is_ortho,
38 CoordinateSystem cs = CS_default);
39 BoundingHexahedron(
const LPoint3 &fll,
const LPoint3 &flr,
40 const LPoint3 &fur,
const LPoint3 &ful,
41 const LPoint3 &nll,
const LPoint3 &nlr,
42 const LPoint3 &nur,
const LPoint3 &nul);
45 ALLOC_DELETED_CHAIN(BoundingHexahedron);
46 virtual BoundingVolume *make_copy()
const;
48 virtual LPoint3 get_min()
const;
49 virtual LPoint3 get_max()
const;
51 virtual LPoint3 get_approx_center()
const;
52 virtual void xform(
const LMatrix4 &mat);
54 virtual void output(std::ostream &out)
const;
55 virtual void write(std::ostream &out,
int indent_level = 0)
const;
59 INLINE_MATHUTIL LPoint3
get_point(
int n)
const;
62 INLINE_MATHUTIL LPlane
get_plane(
int n)
const;
72 virtual bool extend_other(BoundingVolume *other)
const;
73 virtual bool around_other(BoundingVolume *other,
74 const BoundingVolume **first,
75 const BoundingVolume **last)
const;
76 virtual int contains_other(
const BoundingVolume *other)
const;
78 virtual int contains_point(
const LPoint3 &point)
const;
79 virtual int contains_lineseg(
const LPoint3 &a,
const LPoint3 &b)
const;
80 virtual int contains_sphere(
const BoundingSphere *sphere)
const;
81 virtual int contains_box(
const BoundingBox *box)
const;
82 virtual int contains_plane(
const BoundingPlane *plane)
const;
83 virtual int contains_hexahedron(
const BoundingHexahedron *hexahedron)
const;
94 LPoint3 _points[num_points];
95 LPlane _planes[num_planes];
103 static void init_type() {
104 FiniteBoundingVolume::init_type();
106 FiniteBoundingVolume::get_class_type());
108 virtual TypeHandle get_type()
const {
109 return get_class_type();
111 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
114 static TypeHandle _type_handle;
116 friend class BoundingSphere;
117 friend class BoundingBox;
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...