PDCylinder Class Reference

Cylinder. More...

#include <pDomain.h>

Inheritance diagram for PDCylinder:

pDomain

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.
pDomaincopy () 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


Detailed Description

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.


Generated on Tue Dec 30 11:28:40 2008 for ParticleAPI by  doxygen 1.5.8