PDBlob Class Reference

Gaussian blob. More...

#include <pDomain.h>

Inheritance diagram for PDBlob:

pDomain

List of all members.

Public Member Functions

 PDBlob (const pVec &Center, const float StandardDev)
bool Within (const pVec &pos) const
 Has a probability of returning true equal to the probability density at the specified point.
pVec Generate () const
 Returns a point with normal probability density.
float Size () const
 Returns the probability density integral, which is 1.0.
pDomaincopy () const

Public Attributes

pVec ctr
float stdev
float Scale1
float Scale2


Detailed Description

Gaussian blob.

The point Center is the center of a normal probability density of standard deviation StandardDev. The density is radially symmetrical. The blob domain allows for some very natural-looking effects because there is no sharp, artificial-looking boundary at the edge of the domain.

Generate returns a point with normal probability density. Within has a probability of returning true equal to the probability density at the specified point.


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