Interface UniformGrid4d<V>

Type Parameters:
V - the type of elements to be stored in the grid
All Superinterfaces:
UniformGrid<javax.vecmath.Tuple4d,V>
All Known Implementing Classes:
UniformGrid4dImpl

public interface UniformGrid4d<V> extends UniformGrid<javax.vecmath.Tuple4d,V>
Infinite uniform 3D grid with the given cell size.
  • Method Details

    • create

      static <V> UniformGrid4d<V> create(double cellSize)
      Creates new 4D grid.
      Parameters:
      cellSize - Cell size. Must be bigger that one.
      Returns:
      new 4D grid
    • create

      static <V> UniformGrid4d<V> create(double cellSize, Collection<V> objects, Function<? super V,javax.vecmath.Tuple4d> mapFunc)
      Creates new 4D grid. As the mapping function, use (Point4d p) -> p, for instance.
      Parameters:
      cellSize - Cell size. Must be bigger that one.
      objects - Objects to be stored
      mapFunc - A function that computes a 4D space location from an object
      Returns:
      new 4D grid