org.sunflow.image

Class BlackbodySpectrum


public class BlackbodySpectrum
extends SpectralCurve

Constructor Summary

BlackbodySpectrum(float temp)

Method Summary

float
sample(float lambda)
This function determines the actual spectral curve data.

Methods inherited from class org.sunflow.image.SpectralCurve

sample, toXYZ

Constructor Details

BlackbodySpectrum

public BlackbodySpectrum(float temp)

Method Details

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