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