public class AccelerationGrid<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.ArrayList<java.util.LinkedHashSet<T>> |
cells |
Vector3d |
cellsize |
java.util.LinkedHashMap<T,java.util.ArrayList<int[]>> |
elementidxs |
int |
nx |
int |
ny |
int |
nz |
Point3d |
xmax |
Point3d |
xmin |
Constructor and Description |
---|
AccelerationGrid() |
Modifier and Type | Method and Description |
---|---|
void |
add_element(T elem,
Point3d min,
Point3d max) |
java.util.ArrayList<T> |
find_overlapping_elements(Point3d min,
Point3d max) |
java.util.LinkedHashSet<T> |
get(int x,
int y,
int z) |
int[] |
getIndex(Point3d p) |
int[][] |
getIndexes(Point3d min,
Point3d max) |
void |
remove_element(T elem) |
void |
set(int x,
int y,
int z,
java.util.LinkedHashSet<T> cell) |
void |
set(Point3d _xmin,
Point3d _xmax,
int n) |
void |
set(Point3d _xmin,
Point3d _xmax,
int _nx,
int _ny,
int _nz) |
public java.util.ArrayList<java.util.LinkedHashSet<T>> cells
public java.util.LinkedHashMap<T,java.util.ArrayList<int[]>> elementidxs
public Point3d xmin
public Point3d xmax
public int nx
public int ny
public int nz
public Vector3d cellsize