mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
mathutil: add some properties for bounding volumes
This commit is contained in:
parent
65a86d1b3f
commit
6b8814f9c9
@ -47,6 +47,8 @@ PUBLISHED:
|
||||
INLINE_MATHUTIL void set_center(const LPoint3 ¢er);
|
||||
INLINE_MATHUTIL void set_radius(PN_stdfloat radius);
|
||||
|
||||
MAKE_PROPERTY(center, get_center, set_center);
|
||||
MAKE_PROPERTY(radius, get_radius, set_radius);
|
||||
|
||||
public:
|
||||
virtual const BoundingSphere *as_bounding_sphere() const;
|
||||
|
@ -30,6 +30,10 @@ PUBLISHED:
|
||||
virtual LPoint3 get_max() const=0;
|
||||
virtual PN_stdfloat get_volume() const;
|
||||
|
||||
MAKE_PROPERTY(min, get_min);
|
||||
MAKE_PROPERTY(max, get_max);
|
||||
MAKE_PROPERTY(volume, get_volume);
|
||||
|
||||
public:
|
||||
virtual const FiniteBoundingVolume *as_finite_bounding_volume() const;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user