|
| | PDDisc (const pVec &Center, const pVec Normal, const float OuterRadius, const float InnerRadius=0.0f) |
| |
| void | PDDisc_Cons (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. More...
|
| |
| pVec | Generate () const |
| | Returns a point inside the disc shell. More...
|
| |
| float | Size () const |
| | Returns the size of the domain (length, area, or volume). More...
|
| |
| std::shared_ptr< pDomain > | copy () const |
| |
| virtual bool | Within (const pVec &) const =0 |
| | Returns true if the given point is within the domain. More...
|
| |
| virtual pVec | Generate () const =0 |
| | Returns a random point in the domain. More...
|
| |
| virtual float | Size () const =0 |
| | Returns the size of the domain (length, area, or volume). More...
|
| |
| virtual std::shared_ptr< pDomain > | copy () const =0 |
| |
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.