public BitArray2D GetOccupancyMapFromGroups() { BitArray2D result = new BitArray2D(cols: NUM_COLS_REPR, rows: NUM_ROWS_REPR); for (int i = 0; i < properties.Count; i++) { result.Or(properties[i].bitsMap); } return(result); }
public BitArray2D GetOccupancyMap() { BitArray2D result = new BitArray2D(cols: NUM_COLS_REPR, rows: NUM_ROWS_REPR); foreach (var item in map_by_terrain) { result.Or(item.Value); } return(result); }