Example #1
0
 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]);
     }
 }
Example #2
0
        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]);
            }
        }