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; }
public Slice2D(T[,] array) { CommonConstructor(array, DimensionSlice.CreateBasic(array.GetLength(0)), DimensionSlice.CreateBasic(array.GetLength(0))); }
public Slice2D(T[,] array, DimensionSlice x, DimensionSlice y) { CommonConstructor(array, x, y); }