public abstract class QuadTreeObjects<V> extends QuadTree<Collection<V>>
QuadTree.Accumulator<B>, QuadTree.Node<B>
Constructor and Description |
---|
QuadTreeObjects(int maxBucketSize) |
Modifier and Type | Method and Description |
---|---|
void |
add(V v)
If
x(v) or y(v) returns NaN , this method returns
immediately without adding v to the tree. |
void |
remove(V v) |
Collection<V> |
search(float xMin,
float xMax,
float yMin,
float yMax) |
int |
search(float xMin,
float xMax,
float yMin,
float yMax,
Collection<V> results) |
Collection<V> |
search(float xMin,
float xMax,
float yMin,
float yMax,
FilterObject<V> vFilter) |
int |
search(float xMin,
float xMax,
float yMin,
float yMax,
FilterObject<V> vFilter,
Collection<V> results) |
abstract float |
x(V v) |
abstract float |
y(V v) |
accumulate, leaf, quadrant, truncInf
public abstract float x(V v)
public abstract float y(V v)
public Collection<V> search(float xMin, float xMax, float yMin, float yMax)
public int search(float xMin, float xMax, float yMin, float yMax, Collection<V> results)
results
.public Collection<V> search(float xMin, float xMax, float yMin, float yMax, FilterObject<V> vFilter)
public int search(float xMin, float xMax, float yMin, float yMax, FilterObject<V> vFilter, Collection<V> results)
results
.public void add(V v)
x(v)
or y(v)
returns NaN
, this method returns
immediately without adding v
to the tree.public void remove(V v)
Copyright © 2013 Metron, Inc.. All rights reserved.