RavEngine
Loading...
Searching...
No Matches
physx::Gu::Sphere Class Reference
Collaboration diagram for physx::Gu::Sphere:
[legend]

Public Member Functions

PX_INLINE Sphere ()
 Constructor.
 
PX_INLINE Sphere (const PxVec3 &_center, PxF32 _radius)
 Constructor.
 
PX_INLINE Sphere (const Sphere &sphere)
 Copy constructor.
 
PX_INLINE ~Sphere ()
 Destructor.
 
PX_INLINE void set (const PxVec3 &_center, float _radius)
 
PX_INLINE bool isValid () const
 Checks the sphere is valid.
 
PX_INLINE bool contains (const PxVec3 &p) const
 Tests if a point is contained within the sphere.
 

Public Attributes

PxVec3 center
 Sphere's center.
 
PxF32 radius
 Sphere's radius.
 

Member Function Documentation

◆ contains()

PX_INLINE bool physx::Gu::Sphere::contains ( const PxVec3 &  p) const
inline

Tests if a point is contained within the sphere.

Parameters
[in]pthe point to test
Returns
true if inside the sphere

◆ isValid()

PX_INLINE bool physx::Gu::Sphere::isValid ( ) const
inline

Checks the sphere is valid.

Returns
true if the sphere is valid

The documentation for this class was generated from the following file: