public abstract class QuadTree<B> extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
QuadTree.Accumulator<B> |
static interface |
QuadTree.Node<B> |
Modifier and Type | Method and Description |
---|---|
void |
accumulate(float xMin,
float xMax,
float yMin,
float yMax,
QuadTree.Accumulator<B> accumulator) |
com.metsci.glimpse.util.quadtree.QuadTree.LeafNode<B> |
leaf(float x,
float y) |
static int |
quadrant(float xDivider,
float yDivider,
float x,
float y)
0 = small-x small-y
1 = large-x small-y
2 = small-x large-y
3 = large-x large-y
|
static float |
truncInf(float x) |
public QuadTree(B rootBucket)
public static int quadrant(float xDivider, float yDivider, float x, float y)
public static float truncInf(float x)
public com.metsci.glimpse.util.quadtree.QuadTree.LeafNode<B> leaf(float x, float y)
public void accumulate(float xMin, float xMax, float yMin, float yMax, QuadTree.Accumulator<B> accumulator)
Copyright © 2016 Metron, Inc.. All rights reserved.