com.metsci.glimpse.util.quadtree
Class QuadTreeInts
java.lang.Object
com.metsci.glimpse.util.quadtree.QuadTree<com.metsci.glimpse.util.quadtree.QuadTreeInts.Bucket>
com.metsci.glimpse.util.quadtree.QuadTreeInts
public abstract class QuadTreeInts
- extends QuadTree<com.metsci.glimpse.util.quadtree.QuadTreeInts.Bucket>
- Author:
- hogye
Method Summary |
void |
add(int v)
If x(v) or y(v) returns NaN , this method returns
immediately without adding v to the tree. |
static void |
appendFiltered(IntsArray from,
FilterInt filter,
IntsModifiable to)
|
void |
remove(int v)
|
Ints |
search(float xMin,
float xMax,
float yMin,
float yMax)
|
Ints |
search(float xMin,
float xMax,
float yMin,
float yMax,
FilterInt vFilter)
|
int |
search(float xMin,
float xMax,
float yMin,
float yMax,
FilterInt vFilter,
IntsModifiable results)
|
int |
search(float xMin,
float xMax,
float yMin,
float yMax,
IntsModifiable results)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuadTreeInts
public QuadTreeInts(int maxBucketSize)
search
public Ints search(float xMin,
float xMax,
float yMin,
float yMax)
search
public int search(float xMin,
float xMax,
float yMin,
float yMax,
IntsModifiable results)
- Returns:
- The number of elements appended to
results
.
search
public Ints search(float xMin,
float xMax,
float yMin,
float yMax,
FilterInt vFilter)
search
public int search(float xMin,
float xMax,
float yMin,
float yMax,
FilterInt vFilter,
IntsModifiable results)
- Returns:
- The number of elements appended to
results
.
add
public void add(int v)
- If
x(v)
or y(v)
returns NaN
, this method returns
immediately without adding v
to the tree.
remove
public void remove(int v)
appendFiltered
public static void appendFiltered(IntsArray from,
FilterInt filter,
IntsModifiable to)
Copyright © 2012 Metron, Inc.. All Rights Reserved.