org.sunflow.image
Class RegularSpectralCurve

java.lang.Object
  extended by org.sunflow.image.SpectralCurve
      extended by org.sunflow.image.RegularSpectralCurve

public class RegularSpectralCurve
extends SpectralCurve


Constructor Summary
RegularSpectralCurve(float[] spectrum, float lambdaMin, float lambdaMax)
           
 
Method Summary
 float sample(float lambda)
          This function determines the actual spectral curve data.
 
Methods inherited from class org.sunflow.image.SpectralCurve
toXYZ
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegularSpectralCurve

public RegularSpectralCurve(float[] spectrum,
                            float lambdaMin,
                            float lambdaMax)
Method Detail

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 class SpectralCurve
Parameters:
lambda - wavelength to sample in nanometers
Returns:
the value of the spectral curve at this point