import { BinaryGrid } from "https://deno.land/x/structurae@4.0.1/index.ts";
Implements a grid or 2D matrix of bits.
Methods
getCoordinates(row: number, column?): [number, number]
getIndex(row: number, column?): number
Returns the index of an item holding the bit at given coordinates.
Static Methods
fromArrays(arrays: Array<Array<Bit>>): BinaryGrid
Creates a new binary grid from an array of arrays representing rows and item value of the grid.
getLength(rows: number, columns?): number
Returns the length of the underlying TypedArray required to hold a grid of specified dimensions.