| 372 | xyz[2] *= scale; |
| 373 | } |
| 374 | float y() const { |
| 375 | float yy = 0.f; |
| 376 | for (int i = 0; i < NumSpectralSamples; ++i) yy += Y.c[i] * c[i]; |
| 377 | return yy * float(SampledLambdaEnd - SampledLambdaStart) / |
| 378 | float(CIE_Y_integral * NumSpectralSamples); |
| 379 | } |
| 380 | void ToRGB(float rgb[3]) const { |
| 381 | float xyz[3]; |
| 382 | ToXYZ(xyz); |
nothing calls this directly
no outgoing calls
no test coverage detected