public class QuadNode<T>
extends java.lang.Object
Constructor and Description |
---|
QuadNode(float minX,
float minY,
float maxX,
float maxY) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
execute(Box globalBounds,
engine.resources.scene.quadtree.QuadTree.Executor<T> executor) |
QuadLeaf<T> |
firstLeaf() |
java.util.ArrayList<T> |
get(Box bounds,
java.util.ArrayList<T> values) |
T |
get(float x,
float y,
AbstractFloat bestDistance) |
java.util.ArrayList<T> |
get(float x,
float y,
float maxDistance,
java.util.ArrayList<T> values) |
Box |
getBounds() |
boolean |
lock() |
QuadLeaf<T> |
nextLeaf(QuadLeaf<T> currentLeaf) |
boolean |
nextLeaf(QuadLeaf<T> currentLeaf,
AbstractLeaf<T> nextLeaf) |
boolean |
put(float x,
float y,
T value) |
boolean |
put(QuadLeaf<T> leaf) |
boolean |
remove(float x,
float y,
T value) |
boolean |
unlock() |
public boolean put(float x, float y, T value)
public boolean remove(float x, float y, T value)
public Box getBounds()
public void clear()
public T get(float x, float y, AbstractFloat bestDistance)
public java.util.ArrayList<T> get(float x, float y, float maxDistance, java.util.ArrayList<T> values)
public int execute(Box globalBounds, engine.resources.scene.quadtree.QuadTree.Executor<T> executor)
public boolean nextLeaf(QuadLeaf<T> currentLeaf, AbstractLeaf<T> nextLeaf)
public boolean lock()
public boolean unlock()