public bool TryLookup(float value, out T output) { SpectrumBand <T> band; if (spectrum.Lookup(value).TryGetFirst(out band)) { output = band.GetData(); return(true); } output = default(T); return(false); }
public bool TryLookup(float value, out T output) { SpectrumBand <T> band; if (spectrum.Lookup(value).TryGetFirst(out band)) { output = band.GetData(); return(true); } output = default(T); return(false); }