Panda3D
|
Represents a sphere defined by its center point and radius. More...
#include "physxSphere.h"
Public Member Functions | |
PhysxSphere (const PhysxSphere &sphere) | |
bool | contains (const LPoint3f &min, const LPoint3f &max) const |
Tests if an axis aligned box is contained within the sphere. | |
bool | contains (const LPoint3f &p) const |
Tests if a point is contained within the sphere. | |
bool | contains (const PhysxSphere &sphere) const |
Tests if a sphere is contained within the sphere. | |
LPoint3f | get_center () const |
Returns the center of the sphere. | |
float | get_radius () const |
Returns the sphere's radius. | |
bool | intersect (const PhysxSphere &sphere) const |
Tests if the sphere intersects another sphere. | |
bool | is_valid () const |
Returns TRUE if this sphere is valid. | |
void | set_center (LPoint3f value) |
Sets the center of the sphere. | |
void | set_radius (float value) |
Sets the sphere's radius. | |
Public Attributes | |
NxSphere | _sphere |
Represents a sphere defined by its center point and radius.
Definition at line 25 of file physxSphere.h.
|
inline |
Definition at line 17 of file physxSphere.I.
|
inline |
Definition at line 25 of file physxSphere.I.
|
inline |
Definition at line 34 of file physxSphere.I.
bool PhysxSphere::contains | ( | const LPoint3f & | min, |
const LPoint3f & | max ) const |
Tests if an axis aligned box is contained within the sphere.
The axis aligned box is defined by the minimum corner and the maximum corner.
Definition at line 50 of file physxSphere.cxx.
References PhysxManager::vec3_to_nxVec3().
bool PhysxSphere::contains | ( | const LPoint3f & | p | ) | const |
Tests if a point is contained within the sphere.
Definition at line 29 of file physxSphere.cxx.
References PhysxManager::vec3_to_nxVec3().
bool PhysxSphere::contains | ( | const PhysxSphere & | sphere | ) | const |
Tests if a sphere is contained within the sphere.
Definition at line 40 of file physxSphere.cxx.
LPoint3f PhysxSphere::get_center | ( | ) | const |
Returns the center of the sphere.
Definition at line 73 of file physxSphere.cxx.
References PhysxManager::nxVec3_to_vec3().
float PhysxSphere::get_radius | ( | ) | const |
Returns the sphere's radius.
Definition at line 93 of file physxSphere.cxx.
bool PhysxSphere::intersect | ( | const PhysxSphere & | sphere | ) | const |
Tests if the sphere intersects another sphere.
Returns TRUE if the spheres overlap.
Definition at line 64 of file physxSphere.cxx.
bool PhysxSphere::is_valid | ( | ) | const |
Returns TRUE if this sphere is valid.
Definition at line 20 of file physxSphere.cxx.
void PhysxSphere::set_center | ( | LPoint3f | value | ) |
Sets the center of the sphere.
Definition at line 82 of file physxSphere.cxx.
References PhysxManager::vec3_to_nxVec3().
void PhysxSphere::set_radius | ( | float | value | ) |
Sets the sphere's radius.
Definition at line 102 of file physxSphere.cxx.
NxSphere PhysxSphere::_sphere |
Definition at line 45 of file physxSphere.h.