PDLine Class Reference

A line segment. More...

#include <pDomain.h>

Inheritance diagram for PDLine:

pDomain

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).
pDomaincopy () const

Public Attributes

pVec p0
pVec vec
pVec vecNrm
float len


Detailed Description

A line segment.

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.


Generated on Tue Dec 30 11:28:40 2008 for ParticleAPI by  doxygen 1.5.8