Package com.metsci.glimpse.util.quadtree
Class QuadTree<B>
- java.lang.Object
-
- com.metsci.glimpse.util.quadtree.QuadTree<B>
-
- Direct Known Subclasses:
QuadTreeInts,QuadTreeLongs,QuadTreeLongs2,QuadTreeObjects,QuadTreeXys
public abstract class QuadTree<B> extends Object
- Author:
- hogye
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceQuadTree.Accumulator<B>static interfaceQuadTree.Node<B>
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccumulate(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 intquadrant(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-ystatic floattruncInf(float x)
-
-
-
Constructor Detail
-
QuadTree
public QuadTree(B rootBucket)
-
-
Method Detail
-
quadrant
public 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
-
truncInf
public static float truncInf(float x)
-
leaf
public com.metsci.glimpse.util.quadtree.QuadTree.LeafNode<B> leaf(float x, float y)
-
accumulate
public void accumulate(float xMin, float xMax, float yMin, float yMax, QuadTree.Accumulator<B> accumulator)
-
-