|
RavEngine
|
Represents a capsule. More...
#include <GuCapsule.h>
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. | |
Represents a capsule.
Constructor.
| seg | Line segment to create capsule from. |
| _radius | Radius of the capsule. |
|
inline |
Constructor.
| _p0 | First segment point |
| _p1 | Second segment point |
| _radius | Radius of the capsule. |