public void addWavelength(double wavelengthmeters, double intensity) { //Console.WriteLine("wl:"+wavelengthmeters+" int:"+intensity+" added"); this.total_intensity = this.total_intensity+intensity; SpectralUnit aSpectralUnit = new SpectralUnit(wavelengthmeters, intensity); this.spectralUnits.Add(aSpectralUnit); }
public void addWavelength(double wavelengthmeters, double intensity) { //Console.WriteLine("wl:"+wavelengthmeters+" int:"+intensity+" added"); this.total_intensity = this.total_intensity + intensity; SpectralUnit aSpectralUnit = new SpectralUnit(wavelengthmeters, intensity); this.spectralUnits.Add(aSpectralUnit); }