PDLine Class Reference

#include <pDomain.h>

Inheritance diagram for PDLine:

Inheritance graph
[legend]
Collaboration diagram for PDLine:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PDLine (const pVec &e0, const pVec &e1)
 ~PDLine ()
bool Within (const pVec &pos) const
pVec Generate () const
pDomaincopy () const

Public Attributes

pVec p0
pVec p1


Detailed Description

Definition at line 51 of file pDomain.h.


Constructor & Destructor Documentation

PDLine::PDLine ( const pVec e0,
const pVec e1 
) [inline]

Definition at line 57 of file pDomain.h.

References p0, and p1.

Referenced by copy().

00058     {
00059         p0 = e0;
00060         p1 = e1 - e0;
00061     }

Here is the caller graph for this function:

PDLine::~PDLine (  )  [inline]

Definition at line 63 of file pDomain.h.

00064     {
00065     }


Member Function Documentation

bool PDLine::Within ( const pVec pos  )  const [inline, virtual]

Implements pDomain.

Definition at line 67 of file pDomain.h.

00068     {
00069         return false;
00070     }

pVec PDLine::Generate (  )  const [inline, virtual]

Implements pDomain.

Definition at line 72 of file pDomain.h.

References p0, p1, and pRandf.

00073     {
00074         return p0 + p1 * pRandf();
00075     }

pDomain* PDLine::copy (  )  const [inline, virtual]

Implements pDomain.

Definition at line 77 of file pDomain.h.

References PDLine().

00078     {
00079         PDLine *P = new PDLine(*this);
00080         return P;
00081     }

Here is the call graph for this function:


Member Data Documentation

pVec PDLine::p0

Definition at line 54 of file pDomain.h.

Referenced by Generate(), and PDLine().

pVec PDLine::p1

Definition at line 54 of file pDomain.h.

Referenced by Generate(), and PDLine().


The documentation for this class was generated from the following file:
Generated on Sat Mar 15 23:51:51 2008 for Armagetron Advanced by  doxygen 1.5.4