org.sunflow.image
Class ConstantSpectralCurve
public class ConstantSpectralCurve
Very simple class equivalent to a constant spectral curve. Note that this is
most likely physically impossible for amplitudes > 0, however this class can
be handy since in practice spectral curves end up being integrated against
the finite width color matching functions.
float | sample(float lambda) - This function determines the actual spectral curve data.
|
ConstantSpectralCurve
public ConstantSpectralCurve(float amp)
sample
public float sample(float lambda)
This function determines the actual spectral curve data. Note that the
lambda parameter is assumed to be in nanometers.
- sample in interface SpectralCurve
lambda
- wavelength to sample in nanometers
- the value of the spectral curve at this point