15 #include "physxSphere.h"
16 #include "physxManager.h"
26 return _sphere.IsValid();
37 nassertr(!p.
is_nan(),
false);
50 return _sphere.Contains(sphere._sphere);
63 nassertr(!min.
is_nan(),
false);
64 nassertr(!max.
is_nan(),
false);
79 return _sphere.Intersect(sphere._sphere);
101 nassertv(!center.
is_nan());
114 return _sphere.radius;
125 _sphere.radius = radius;
LPoint3f get_center() const
Returns the center of the sphere.
Represents a sphere defined by its center point and radius.
bool contains(const LPoint3f &p) const
Tests if a point is contained within the sphere.
void set_center(LPoint3f value)
Sets the center of the sphere.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
bool is_nan() const
Returns true if any component of the vector is not-a-number, false otherwise.
bool intersect(const PhysxSphere &sphere) const
Tests if the sphere intersects another 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.
bool is_valid() const
Returns TRUE if this sphere is valid.