public Grid(int w, int h) { Size = new Vec2i(w, h); LocalRegion = new Recti(0, 0, w, h); TotalCells = w * h; }
public bool this[Vec2i v] { get { return(data[v.y * Width + v.x]); } set { data[v.y * Width + v.x] = value; } }