public int GetIndex(IntVector2 cell) { return(cell.y * gridSize.x + cell.x); }
public bool InBounds(IntVector2 cell) { return(cell.x >= 0 && cell.x < gridSize.x && cell.y >= 0 && cell.y < gridSize.y); }
public int GetIndex(IntVector2 cell) { return(cell.y * gridSize.x + cell.x); }
public bool InBounds(IntVector2 cell) { return(cell.x >= 0 && cell.x < gridSize.x && cell.y >= 0 && cell.y < gridSize.y); }