protected static class KdNode.KdValueFetcherX extends java.lang.Object implements KdNode.IKdValueFetcher
Modifier and Type | Field and Description |
---|---|
protected static java.util.Comparator |
COMPARATOR
Static comparator to avoid instantiation overhead
|
static KdNode.KdValueFetcherX |
FETCHER
Static fetcher to avoid instantiation overhead
|
Modifier | Constructor and Description |
---|---|
protected |
KdValueFetcherX() |
Modifier and Type | Method and Description |
---|---|
java.util.Comparator<ISpaceObject> |
getComparator()
Returns a comparator for sorting within the current hyperplane.
|
double |
getValue(IVector2 point)
Returns the coordinate value of the current hyperplane.
|
KdNode.IKdValueFetcher |
nextFetcher()
Returns the fetcher for the next hyperplane in the tree.
|
public static final KdNode.KdValueFetcherX FETCHER
protected static final java.util.Comparator COMPARATOR
public double getValue(IVector2 point)
getValue
in interface KdNode.IKdValueFetcher
point
- The input value.public KdNode.IKdValueFetcher nextFetcher()
nextFetcher
in interface KdNode.IKdValueFetcher
public java.util.Comparator<ISpaceObject> getComparator()
getComparator
in interface KdNode.IKdValueFetcher