#include <pDomain.h>
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). |
|
pDomain * | copy () 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 |
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.