Package cz.fidentis.analyst.data.grid
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
Infinite uniform 3D grid with the given cell size.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <V> UniformGrid4d
<V> create
(double cellSize) Creates new 4D grid.static <V> UniformGrid4d
<V> create
(double cellSize, Collection<V> objects, Function<? super V, javax.vecmath.Tuple4d> mapFunc) Creates new 4D grid.Methods inherited from interface cz.fidentis.analyst.data.grid.UniformGrid
clear, get, getAll, getCellSize, getClosest, getNonEmptyCells, numOccupiedCells, remove, store, store
-
Method Details
-
create
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 storedmapFunc
- A function that computes a 4D space location from an object- Returns:
- new 4D grid
-