23 return _sphere.IsValid();
32 nassertr(!p.is_nan(),
false);
43 return _sphere.Contains(sphere._sphere);
51 contains(
const LPoint3f &min,
const LPoint3f &max)
const {
53 nassertr(!min.is_nan(),
false);
54 nassertr(!max.is_nan(),
false);
67 return _sphere.Intersect(sphere._sphere);
85 nassertv(!center.is_nan());
96 return _sphere.radius;
105 _sphere.radius = radius;
Represents a sphere defined by its center point and radius.
void set_center(LPoint3f value)
Sets the center of the sphere.
bool is_valid() const
Returns TRUE if this sphere is valid.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bool contains(const LPoint3f &p) const
Tests if a point is contained within the sphere.
LPoint3f get_center() const
Returns the center of the sphere.
float get_radius() const
Returns the sphere's radius.
static NxVec3 vec3_to_nxVec3(const LVector3f &v)
Converts from LVector3f to NxVec3.
static LVector3f nxVec3_to_vec3(const NxVec3 &v)
Converts from NxVec3 to LVector3f.
void set_radius(float value)
Sets the sphere's radius.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bool intersect(const PhysxSphere &sphere) const
Tests if the sphere intersects another sphere.