#include <pDomain.h>
List of all members.
Public Member Functions |
|
PDCylinder (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. |
|
pVec | Generate () const |
Returns a random point in the cylindrical shell. |
|
float | Size () const |
Returns the thick cylindrical shell volume or the thin cylindrical shell area if OuterRadius==InnerRadius. |
|
pDomain * | copy () const |
Public Attributes |
|
pVec | apex |
pVec | axis |
pVec | u |
pVec | v |
float | radOut |
float | radIn |
float | radOutSqr |
float | radInSqr |
float | radDif |
float | axisLenInvSqr |
float | vol |
bool | ThinShell |
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.