示例#1
0
 // Set/Cell
 public void SetCell(Pointer pnt, VoxelCell cell)
 {
     Cells[pnt.X, pnt.Y] = cell;
 }
示例#2
0
 // Change/Cell
 public bool ChangeCell(Pointer pnt, VoxelCell cell)
 {
     return(ChangeValue(ref Cells[pnt.X, pnt.Y], cell));
 }
示例#3
0
 public VoxelMap(int width, int height)
 {
     Cells = new VoxelCell[width, height];
     (Width, Height, Area) = (width, height, width *height);
 }