PDCone Class Reference

Cone. More...

#include <pDomain.h>

Inheritance diagram for PDCone:

pDomain

List of all members.


Public Member Functions

  PDCone (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 conical shell.
pVec  Generate () const
  Returns a random point in the conical shell.
float  Size () const
  Returns the thick conical shell volume or the thin conical 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

Detailed Description

Cone.

e0 is the apex of the cone and e1 is the endpoint of the axis at the cone's base. OuterRadius is the radius of the base of the cone. InnerRadius is the radius of the base of a cone to subtract from the first cone to create a conical shell. This is similar to the cylindrical shell, which can be thought of as a large cylinder with a smaller cylinder subtracted from the middle. Both cones share the same apex and axis, which implies that the thickness of the conical shell tapers to 0 at the apex. InnerRadius = 0 for a solid cone with no empty space in the middle.

Generate returns a random point in the conical shell. Within returns true if the point is within the conical shell.


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