public class IrregularSpectralCurve extends SpectralCurve
ArrayIndexOutOfBoundsExceptions if the
array lengths don't match.| Constructor and Description |
|---|
IrregularSpectralCurve(float[] wavelengths,
float[] amplitudes)
Define an irregular spectral curve from the provided (sorted) wavelengths
and amplitude data.
|
| Modifier and Type | Method and Description |
|---|---|
float |
sample(float lambda)
This function determines the actual spectral curve data.
|
toXYZpublic IrregularSpectralCurve(float[] wavelengths,
float[] amplitudes)
wavelengths - sampled wavelengths in nmamplitudes - amplitude of the curve at the sampled pointspublic float sample(float lambda)
SpectralCurvesample in class SpectralCurvelambda - wavelength to sample in nanometers