public RectTable(int w, int h, T defval) { this.w = w; this.h = h; _table = new AutoTable <T>(defval); }
public void AddTable(AutoTable <T> table) { for (int y = 0; y < table.Height; y++) { this.AddRow(); for (int x = 0; x < table.GetWidth(y); x++) { this.Add(table[x, y]); } } }
public void Twist() { AutoTable <T> dest = new AutoTable <T>(_defval); for (int x = 0; x < _w; x++) { for (int y = 0; y < _h; y++) { dest[y, x] = this[x, y]; } } this.Capture(dest); }
private void Capture(AutoTable <T> target) { _rows = target._rows; _w = target._w; _h = target._h; }