PDDisc Class Reference

Arbitrarily-oriented disc. More...

#include <pDomain.h>

Inheritance diagram for PDDisc:

pDomain

List of all members.

Public Member Functions

 PDDisc (const pVec &Center, const pVec Normal, const float OuterRadius, const float InnerRadius=0.0f)
bool Within (const pVec &pos) const
 Returns true for points within epsilon of the disc.
pVec Generate () const
 Returns a point inside the disc shell.
float Size () const
 Returns the size of the domain (length, area, or volume).
pDomaincopy () const

Public Attributes

pVec p
pVec nrm
pVec u
pVec v
float radIn
float radOut
float radInSqr
float radOutSqr
float dif
float D
float area


Detailed Description

Arbitrarily-oriented disc.

The point Center is the center of a disc in the plane with normal Normal. The disc has an OuterRadius. If InnerRadius is greater than 0, the domain is a flat washer, rather than a disc. The normal will get normalized, so it need not already be unit length.

Generate returns a point inside the disc shell. Within returns true for points within epsilon of the disc.


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