| 186 | } |
| 187 | |
| 188 | SampledSpectrum::SampledSpectrum(const RGBSpectrum &r, SpectrumType t) { |
| 189 | float rgb[3]; |
| 190 | r.ToRGB(rgb); |
| 191 | *this = SampledSpectrum::FromRGB(rgb, t); |
| 192 | } |
| 193 | |
| 194 | float InterpolateSpectrumSamples(const float *lambda, const float *vals, int n, |
| 195 | float l) { |