public FilterFrequencySpec(FilterFrequencySpec spec) { if (spec == null) { PassFreqs = new Pair<double, double>(); StopFreqs = new Pair<double, double>(); return; } spec.CopyTo(this); return; }
public void CopyTo(FilterFrequencySpec spec) { spec.PassFreqs = new Pair<double,double>(PassFreqs); spec.StopFreqs = new Pair<double, double>(StopFreqs); spec.PassRipple = PassRipple; spec.StopRipple = StopRipple; spec.FilterType = FilterType; spec.BandType = BandType; return; }