Beispiel #1
0
 public void CommonConstructor(T[,] array, DimensionSlice x, DimensionSlice y)
 {
     this.x     = x; this.y = y;
     this.array = array;
     if (this.x.Stop == null)
     {
         this.x.Stop = array.GetLength(0);
     }
     if (this.y.Stop == null)
     {
         this.y.Stop = array.GetLength(1);
     }
     xLength = ((int)x.Stop - x.Start) / x.Step;
     yLength = ((int)y.Stop - y.Start) / y.Step;
 }
Beispiel #2
0
 public Slice2D(T[,] array)
 {
     CommonConstructor(array, DimensionSlice.CreateBasic(array.GetLength(0)), DimensionSlice.CreateBasic(array.GetLength(0)));
 }
Beispiel #3
0
 public Slice2D(T[,] array, DimensionSlice x, DimensionSlice y)
 {
     CommonConstructor(array, x, y);
 }