|
| | PDCylinder (const pVec &e0, const pVec &e1, const float OuterRadius, const float InnerRadius=0.0f) |
| |
| void | PDCylinder_Cons (const pVec &e0, const pVec &e1, const float OuterRadius, const float InnerRadius=0.0f) |
| |
| bool | Within (const pVec &pos) const |
| | Returns true if the point is within the cylindrical shell. More...
|
| |
| pVec | Generate () const |
| | Returns a random point in the cylindrical shell. More...
|
| |
| float | Size () const |
| | Returns the thick cylindrical shell volume or the thin cylindrical 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 |
| |
Cylinder.
e0 and e1 are the endpoints of the axis of the right cylinder. OuterRadius is the outer radius, and InnerRadius is the inner radius for a cylindrical shell. InnerRadius = 0 for a solid cylinder with no empty space in the middle.
Generate returns a random point in the cylindrical shell. Within returns true if the point is within the cylindrical shell.