public Interpolator2D(Interpolator2D other) { xArray = other.xArray; size = other.size; yArray = new Interpolator[size]; for (int i = 0; i < size; i++) { yArray[i] = new Interpolator(other.yArray[i]); } }
public Interpolator2D(Interpolator2D other) { if (null == other) { throw new ArgumentNullException(nameof(other)); } xArray = other.xArray; size = other.size; yArray = new Interpolator[size]; for (int i = 0; i < size; i++) { yArray[i] = new Interpolator(other.yArray[i]); } }