
Public Member Functions | |
| ExponentialDensity (const Spectrum &sa, const Spectrum &ss, float gg, const Spectrum &emit, const BBox &e, const Transform &v2w, float aa, float bb, const Vector &up) | |
| BBox | WorldBound () const |
| bool | IntersectP (const Ray &r, float *t0, float *t1) const |
| float | Density (const Point &Pobj) const |
Private Attributes | |
| BBox | extent |
| float | a |
| float | b |
| Vector | upDir |
Definition at line 27 of file exponential.cpp.
| BBox ExponentialDensity::WorldBound | ( | ) | const [inline, virtual] |
Implements VolumeRegion.
Definition at line 38 of file exponential.cpp.
References extent, Transform::GetInverse(), and DensityRegion::WorldToVolume.
| bool ExponentialDensity::IntersectP | ( | const Ray & | r, | |
| float * | t0, | |||
| float * | t1 | |||
| ) | const [inline, virtual] |
Implements VolumeRegion.
Definition at line 39 of file exponential.cpp.
References extent, BBox::IntersectP(), and DensityRegion::WorldToVolume.
| float ExponentialDensity::Density | ( | const Point & | Pobj | ) | const [inline, virtual] |
Implements DensityRegion.
Definition at line 43 of file exponential.cpp.
References a, b, Dot(), extent, BBox::Inside(), BBox::pMin, and upDir.
BBox ExponentialDensity::extent [private] |
Definition at line 50 of file exponential.cpp.
Referenced by Density(), IntersectP(), and WorldBound().
float ExponentialDensity::a [private] |
float ExponentialDensity::b [private] |
Vector ExponentialDensity::upDir [private] |
1.5.6