PBRT
CoefficientSpectrum< nSamples > Class Template Reference

List of all members.

Public Member Functions

 CoefficientSpectrum (float v=0.f)
void Print (FILE *f) const
CoefficientSpectrumoperator+= (const CoefficientSpectrum &s2)
CoefficientSpectrum operator+ (const CoefficientSpectrum &s2) const
CoefficientSpectrum operator- (const CoefficientSpectrum &s2) const
CoefficientSpectrum operator/ (const CoefficientSpectrum &s2) const
CoefficientSpectrum operator* (const CoefficientSpectrum &sp) const
CoefficientSpectrumoperator*= (const CoefficientSpectrum &sp)
CoefficientSpectrum operator* (float a) const
CoefficientSpectrumoperator*= (float a)
CoefficientSpectrum operator/ (float a) const
CoefficientSpectrumoperator/= (float a)
bool operator== (const CoefficientSpectrum &sp) const
bool operator!= (const CoefficientSpectrum &sp) const
bool IsBlack () const
CoefficientSpectrum operator- () const
CoefficientSpectrum Clamp (float low=0, float high=INFINITY) const
bool HasNaNs () const
bool Write (FILE *f) const
bool Read (FILE *f)

Protected Attributes

float c [nSamples]

Friends

CoefficientSpectrum operator* (float a, const CoefficientSpectrum &s)
CoefficientSpectrum Sqrt (const CoefficientSpectrum &s)
template<int n>
CoefficientSpectrum< n > Pow (const CoefficientSpectrum< n > &s, float e)
CoefficientSpectrum Exp (const CoefficientSpectrum &s)

template<int nSamples>
class CoefficientSpectrum< nSamples >


The documentation for this class was generated from the following file: