RavEngine
Loading...
Searching...
No Matches
physx::Gu::Capsule Class Reference

Represents a capsule. More...

#include <GuCapsule.h>

Inheritance diagram for physx::Gu::Capsule:
[legend]
Collaboration diagram for physx::Gu::Capsule:
[legend]

Public Member Functions

PX_INLINE Capsule ()
 Constructor.
 
PX_INLINE Capsule (const Segment &seg, PxF32 _radius)
 Constructor.
 
PX_INLINE Capsule (const PxVec3 &_p0, const PxVec3 &_p1, PxF32 _radius)
 Constructor.
 
PX_INLINE ~Capsule ()
 Destructor.
 
- Public Member Functions inherited from physx::Gu::Segment
PX_INLINE Segment ()
 Constructor.
 
PX_INLINE Segment (const PxVec3 &_p0, const PxVec3 &_p1)
 Constructor.
 
PX_INLINE Segment (const Segment &seg)
 Copy constructor.
 
PX_INLINE ~Segment ()
 Destructor.
 
PX_INLINE Segment & operator= (const Segment &other)
 Assignment operator.
 
PX_INLINE bool operator== (const Segment &other) const
 Equality operator.
 
PX_INLINE bool operator!= (const Segment &other) const
 Inequality operator.
 
PX_INLINE const PxVec3 & getOrigin () const
 
PX_INLINE PxVec3 computeDirection () const
 Return the vector from point0 to point1.
 
PX_INLINE void computeDirection (PxVec3 &dir) const
 Return the vector from point0 to point1.
 
PX_INLINE PxVec3 computeCenter () const
 Return the center of the segment segment.
 
PX_INLINE PxF32 computeLength () const
 
PX_INLINE PxF32 computeSquareLength () const
 
PX_INLINE PxReal lengthSquared () const
 Return the square of the length of vector from point0 to point1.
 
PX_INLINE PxReal length () const
 Return the length of vector from point0 to point1.
 
PX_INLINE void computePoint (PxVec3 &pt, PxF32 t) const
 Computes a point on the segment.
 
PX_INLINE PxVec3 getPointAt (PxReal t) const
 Return the point at parameter t along the line: point0 + t*(point1-point0)
 

Public Attributes

PxF32 radius
 
- Public Attributes inherited from physx::Gu::Segment
PxVec3 p0
 Start of segment.
 
PxVec3 p1
 End of segment.
 

Detailed Description

Represents a capsule.

Constructor & Destructor Documentation

◆ Capsule() [1/2]

PX_INLINE physx::Gu::Capsule::Capsule ( const Segment &  seg,
PxF32  _radius 
)
inline

Constructor.

Parameters
segLine segment to create capsule from.
_radiusRadius of the capsule.

◆ Capsule() [2/2]

PX_INLINE physx::Gu::Capsule::Capsule ( const PxVec3 &  _p0,
const PxVec3 &  _p1,
PxF32  _radius 
)
inline

Constructor.

Parameters
_p0First segment point
_p1Second segment point
_radiusRadius of the capsule.

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