/// <summary> /// Sets the bit at the specified coordinate to the state specified by <i>value</i>. /// </summary> /// <param name="column">the index of the column-coordinate.</param> /// <param name="row">the index of the row-coordinate.</param> /// <param name="value">the value of the bit to be copied into the specified coordinate.</param> /// <exception cref="IndexOutOfRangeException">if <i>column<0 || column>=columns() || row<0 || row>=rows()</i></exception> public void Put(int column, int row, Boolean value) { if (column < 0 || column >= _columns || row < 0 || row >= _rows) { throw new IndexOutOfRangeException("column:" + column + ", row:" + row); } QuickBitVector.Put(_bits, row * _columns + column, value); }
public Boolean this[int column, int row] { get { return(QuickBitVector.Get(_bits, row * _columns + column)); } set { QuickBitVector.Put(_bits, row * _columns + column, value); } }