astex
Class NeighbourGrid

java.lang.Object
  extended by astex.NeighbourGrid

public class NeighbourGrid
extends java.lang.Object


Constructor Summary
NeighbourGrid(double xmin, double ymin, double zmin, double xmax, double ymax, double zmax, double dmin, int sizeHint)
          Construct a neighbour grid with the following specification.
 
Method Summary
 void add(int i, double x, double y, double z)
          Add an object to the appropriate cell.
 int getCellContents(int icell, IntArray c)
          Get the contents of the cell.
 int getPossibleNeighbours(int id, double x, double y, double z, IntArray neighbours, boolean allNeighbours)
          Return the possible neighbours of the point.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NeighbourGrid

public NeighbourGrid(double xmin,
                     double ymin,
                     double zmin,
                     double xmax,
                     double ymax,
                     double zmax,
                     double dmin,
                     int sizeHint)
Construct a neighbour grid with the following specification.

Method Detail

add

public void add(int i,
                double x,
                double y,
                double z)
Add an object to the appropriate cell.


getPossibleNeighbours

public int getPossibleNeighbours(int id,
                                 double x,
                                 double y,
                                 double z,
                                 IntArray neighbours,
                                 boolean allNeighbours)
Return the possible neighbours of the point.


getCellContents

public int getCellContents(int icell,
                           IntArray c)
Get the contents of the cell.