sim.portrayal3d.grid
Class GridCellInfo

java.lang.Object
  extended bysim.portrayal3d.grid.GridCellInfo

public class GridCellInfo
extends java.lang.Object


Nested Class Summary
 class GridCellInfo.DoubleGrid2DW
           
 class GridCellInfo.DoubleGrid3DW
           
static interface GridCellInfo.Grid
          Interface all grids should implement.
 class GridCellInfo.IntGrid2DW
           
 class GridCellInfo.IntGrid3DW
           
 
Field Summary
 GridCellInfo.Grid grid
          This could be Grid2D or Grid3D
 boolean is3D
          this is equivalent to grid instanceof Grid3D, but cached
 int x
           
 int y
           
 int z
           
 
Constructor Summary
GridCellInfo(Grid2D g)
           
GridCellInfo(Grid3D g)
           
 
Method Summary
 double value()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

grid

public final GridCellInfo.Grid grid
This could be Grid2D or Grid3D


is3D

public final boolean is3D
this is equivalent to grid instanceof Grid3D, but cached


x

public int x

y

public int y

z

public int z
Constructor Detail

GridCellInfo

public GridCellInfo(Grid2D g)

GridCellInfo

public GridCellInfo(Grid3D g)
Method Detail

value

public double value()