29class EXPCL_PANDAPHYSX PhysxBounds3 {
32 INLINE PhysxBounds3();
33 INLINE ~PhysxBounds3();
35 void bounds_of_obb(
const LMatrix3f &orientation,
const LPoint3f &translation,
const LVector3f &half_dims);
36 void combine(
const PhysxBounds3 &b2);
37 bool contain(
const LPoint3f &p)
const;
38 void fatten(
float distance);
39 void include(
const LPoint3f &v);
41 bool intersects2d(
const PhysxBounds3 &b,
unsigned axis_to_ignore)
const;
44 void set(
const LPoint3f &min,
const LPoint3f &max);
48 void transform(
const LMatrix3f &orientation,
const LPoint3f &translation);
void set_min(LPoint3f value)
Sets the minimum corner of the bounding box.
LPoint3f get_min() const
Returns the maximum corner of the bounding box.
void set_max(LPoint3f value)
Sets the maximum corner of the bounding box.
void transform(const LMatrix3f &orientation, const LPoint3f &translation)
Transforms this volume as if it was an axis aligned bounding box, and then assigns the results' bound...
void scale(float scale)
Scales the AABB by the given factor.
bool is_empty() const
Returns TRUE if the bounding box is empty.
void set_empty()
Sets empty to TRUE.
void include(const LPoint3f &v)
Expands the volume to include the point v.
bool intersects(const PhysxBounds3 &b) const
Returns TRUE if the intersection of this and b is is not empty.
bool contain(const LPoint3f &p) const
Returns TRUE if these bounds contain the point v.
LVector3f get_dimensions() const
Returns the extents of the bounding box.
void fatten(float distance)
Fattens the AABB in all three dimensions by the given distance.
void combine(const PhysxBounds3 &b2)
Sets this to the union of this and b2.
void set(const LPoint3f &min, const LPoint3f &max)
Setup this AABB from minimum corner and maximum corner.
LPoint3f get_max() const
Returns the minimum corner of the bounding box.
LPoint3f get_center() const
Returns the center of the bounding box.
void set_infinite()
Sets infinite bounds.
bool intersects2d(const PhysxBounds3 &b, unsigned axis_to_ignore) const
Indicates whether the intersection of this and b is empty or not in the plane orthogonal to the axis ...
void bounds_of_obb(const LMatrix3f &orientation, const LPoint3f &translation, const LVector3f &half_dims)
Sets this to the AABB (axis ligned bounding box) of the OBB (oriented bounding box).
void set_center_extents(const LPoint3f ¢er, const LVector3f &extents)
Setup this AABB from center point and extents vector.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.