28 INLINE_MATHUTIL
explicit BoundingSphere(
const LPoint3 ¢er, PN_stdfloat radius);
32 virtual BoundingVolume *make_copy()
const;
34 virtual LPoint3 get_min()
const;
35 virtual LPoint3 get_max()
const;
36 virtual PN_stdfloat get_volume()
const;
38 virtual LPoint3 get_approx_center()
const;
39 virtual void xform(
const LMatrix4 &mat);
41 virtual void output(std::ostream &out)
const;
44 INLINE_MATHUTIL LPoint3 get_center()
const;
45 INLINE_MATHUTIL PN_stdfloat get_radius()
const;
47 INLINE_MATHUTIL
void set_center(
const LPoint3 ¢er);
48 INLINE_MATHUTIL
void set_radius(PN_stdfloat radius);
57 virtual bool extend_other(BoundingVolume *other)
const;
58 virtual bool around_other(BoundingVolume *other,
59 const BoundingVolume **first,
60 const BoundingVolume **last)
const;
61 virtual int contains_other(
const BoundingVolume *other)
const;
64 virtual bool extend_by_point(
const LPoint3 &point);
66 virtual bool extend_by_box(
const BoundingBox *box);
67 virtual bool extend_by_hexahedron(
const BoundingHexahedron *hexahedron);
70 virtual bool around_points(
const LPoint3 *first,
72 virtual bool around_finite(
const BoundingVolume **first,
73 const BoundingVolume **last);
75 virtual int contains_point(
const LPoint3 &point)
const;
76 virtual int contains_lineseg(
const LPoint3 &a,
const LPoint3 &b)
const;
77 virtual int contains_hexahedron(
const BoundingHexahedron *hexahedron)
const;
79 virtual int contains_box(
const BoundingBox *box)
const;
80 virtual int contains_line(
const BoundingLine *line)
const;
81 virtual int contains_plane(
const BoundingPlane *plane)
const;
92 static void init_type() {
93 FiniteBoundingVolume::init_type();
95 FiniteBoundingVolume::get_class_type());
97 virtual TypeHandle get_type()
const {
98 return get_class_type();
100 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
103 static TypeHandle _type_handle;
105 friend class BoundingHexahedron;
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...