#include <exponential.h>
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 35 of file exponential.h.
| ExponentialDensity::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 | |||
| ) | [inline] |
Definition at line 38 of file exponential.h.
References Normalize(), and upDir.
| float ExponentialDensity::Density | ( | const Point & | Pobj | ) | const [inline, virtual] |
Implements DensityRegion.
Definition at line 50 of file exponential.h.
References a, b, Dot(), extent, BBox::Inside(), BBox::pMin, and upDir.
| bool ExponentialDensity::IntersectP | ( | const Ray & | r, | |
| float * | t0, | |||
| float * | t1 | |||
| ) | const [inline, virtual] |
Implements VolumeRegion.
Definition at line 46 of file exponential.h.
References extent, BBox::IntersectP(), and DensityRegion::WorldToVolume.
| BBox ExponentialDensity::WorldBound | ( | ) | const [inline, virtual] |
Implements VolumeRegion.
Definition at line 45 of file exponential.h.
References extent, Inverse(), and DensityRegion::WorldToVolume.
float ExponentialDensity::a [private] |
Definition at line 58 of file exponential.h.
Referenced by Density().
float ExponentialDensity::b [private] |
Definition at line 58 of file exponential.h.
Referenced by Density().
BBox ExponentialDensity::extent [private] |
Definition at line 57 of file exponential.h.
Referenced by Density(), IntersectP(), and WorldBound().
Vector ExponentialDensity::upDir [private] |
Definition at line 59 of file exponential.h.
Referenced by Density(), and ExponentialDensity().
1.6.3