Example #1
0
 private int GetWestX(int x)
 {
     if (x == 0)
     {
         return(grid2d.GetXDimension() - 1);       //inifinite boundary - torus
     }
     else
     {
         return(x - 1);
     }
 }