Class ChromaticitySpectrum


  • public final class ChromaticitySpectrum
    extends SpectralCurve
    This spectral curve represents a given (x,y) chromaticity pair as explained in the sun/sky paper (section A.5)
    • Field Detail

      • S0Amplitudes

        private static final float[] S0Amplitudes
      • S1Amplitudes

        private static final float[] S1Amplitudes
      • S2Amplitudes

        private static final float[] S2Amplitudes
      • S0xyz

        private static final XYZColor S0xyz
      • S1xyz

        private static final XYZColor S1xyz
      • S2xyz

        private static final XYZColor S2xyz
      • M1

        private final float M1
      • M2

        private final float M2
    • Constructor Detail

      • ChromaticitySpectrum

        public ChromaticitySpectrum​(float x,
                                    float y)
    • 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
      • get

        public static final XYZColor get​(float x,
                                         float y)