PDPlane Class Reference

#include <pDomain.h>

Inheritance diagram for PDPlane:

Inheritance graph
[legend]
Collaboration diagram for PDPlane:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PDPlane (const pVec &p0, const pVec &nrm0)
 ~PDPlane ()
bool Within (const pVec &pos) const
pVec Generate () const
pDomaincopy () const

Public Attributes

pVec p
pVec nrm
float D


Detailed Description

Definition at line 189 of file pDomain.h.


Constructor & Destructor Documentation

PDPlane::PDPlane ( const pVec p0,
const pVec nrm0 
) [inline]

Definition at line 196 of file pDomain.h.

References D, pVec::normalize(), nrm, and p.

Referenced by copy().

00197     {
00198         p = p0;
00199         nrm = nrm0;
00200         nrm.normalize(); // Must normalize it.
00201         D = -(p * nrm);
00202     }

Here is the call graph for this function:

Here is the caller graph for this function:

PDPlane::~PDPlane (  )  [inline]

Definition at line 204 of file pDomain.h.

00205     {
00206     }


Member Function Documentation

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

Implements pDomain.

Definition at line 210 of file pDomain.h.

References D, and nrm.

00211     {
00212         return nrm * pos >= -D;
00213     }

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

Implements pDomain.

Definition at line 216 of file pDomain.h.

References p.

00217     {
00218         return p;
00219     }

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

Implements pDomain.

Definition at line 221 of file pDomain.h.

References PDPlane().

00222     {
00223         PDPlane *P = new PDPlane(*this);
00224         return P;
00225     }

Here is the call graph for this function:


Member Data Documentation

pVec PDPlane::p

Definition at line 192 of file pDomain.h.

Referenced by Generate(), and PDPlane().

pVec PDPlane::nrm

Definition at line 192 of file pDomain.h.

Referenced by PABounce::Exec(), PAAvoid::Exec(), PDPlane(), and Within().

float PDPlane::D

Definition at line 193 of file pDomain.h.

Referenced by PABounce::Exec(), PAAvoid::Exec(), PDPlane(), and Within().


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