|
RavEngine
|
Represents a line segment. More...
#include <GuSegment.h>
Public Member Functions | |
| 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 | |
| PxVec3 | p0 |
| Start of segment. | |
| PxVec3 | p1 |
| End of segment. | |
Represents a line segment.
Line segment geometry In some cases this structure will be used to represent the infinite line that passes point0 and point1.
Computes a point on the segment.
| [out] | pt | point on segment |
| [in] | t | point's parameter [t=0 => pt = mP0, t=1 => pt = mP1] |