java.lang.Object
org.sunflow.image.SpectralCurve
org.sunflow.image.ChromaticitySpectrum
- All Implemented Interfaces:
Serializable
This spectral curve represents a given (x,y) chromaticity pair as explained
in the sun/sky paper (section A.5)
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class org.sunflow.image.SpectralCurve
toXYZ, toXYZ
-
Constructor Details
-
ChromaticitySpectrum
public ChromaticitySpectrum(float x, float y)
-
-
Method Details
-
sample
public float sample(float lambda) Description copied from class:SpectralCurve
This function determines the actual spectral curve data. Note that the lambda parameter is assumed to be in nanometers.- Specified by:
sample
in classSpectralCurve
- Parameters:
lambda
- wavelength to sample in nanometers- Returns:
- the value of the spectral curve at this point
-
get
-
get
-