Package cz.fidentis.analyst.data.grid
Interface UniformGrid3d<V>
- Type Parameters:
V
- the type of elements to be stored in the grid
- All Superinterfaces:
UniformGrid<javax.vecmath.Tuple3d,
V>
- All Known Implementing Classes:
UniformGrid3dImpl
Infinite uniform 3D grid with the given cell size.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <V> UniformGrid3d
<V> create
(double cellSize) Creates new 3D grid.static <V> UniformGrid3d
<V> create
(double cellSize, Collection<V> objects, Function<? super V, javax.vecmath.Tuple3d> mapFunc) Creates new 3D 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 3D grid.- Parameters:
cellSize
- Cell size. Must be bigger that one.- Returns:
- new 3D grid
-
create
static <V> UniformGrid3d<V> create(double cellSize, Collection<V> objects, Function<? super V, javax.vecmath.Tuple3d> mapFunc) Creates new 3D grid. As the mapping function, use(MeshPoint mp) -> mp.getPosition()
or(Point3d p) -> p
, for instance.- Parameters:
cellSize
- Cell size. Must be bigger that one.objects
- Objects to be storedmapFunc
- A function that computes a 3D space location from an object- Returns:
- new 3D grid
-