|
| | PDSphere (const pVec &Center, const float OuterRadius, const float InnerRadius=0.0f) |
| |
| void | PDSphere_Cons (const pVec &Center, const float OuterRadius, const float InnerRadius=0.0f) |
| |
| bool | Within (const pVec &pos) const |
| | Returns true if the point lies within the thick shell. More...
|
| |
| pVec | Generate () const |
| | Returns a random point in the thick spherical shell. More...
|
| |
| float | Size () const |
| | Returns the thick spherical shell volume or the thin spherical shell area if OuterRadius==InnerRadius. 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 |
| |
Sphere.
The point Center is the center of the sphere. OuterRadius is the outer radius of the spherical shell and InnerRadius is the inner radius.
Generate returns a random point in the thick shell at a distance between OuterRadius and InnerRadius from point Center. If InnerRadius is 0, then it is the whole sphere. Within returns true if the point lies within the thick shell at a distance between InnerRadius to OuterRadius from point Center.