#include <pDomain.h>
List of all members.
Public Member Functions |
|
PDLine (const pVec &e0, const pVec &e1) | |
bool | Within (const pVec &pos) const |
Returns true for points within epsilon of the line segment. |
|
pVec | Generate () const |
Returns a random point on this segment. |
|
float | Size () const |
Returns the size of the domain (length, area, or volume). |
|
pDomain * | copy () const |
Public Attributes |
|
pVec | p0 |
pVec | vec |
pVec | vecNrm |
float | len |
e0 and e1 are the endpoints of the segment.
Generate returns a random point on this segment. Within returns true for points within epsilon of the line segment.