Class KdNode.KdValueFetcherX
- java.lang.Object
-
- jadex.extension.envsupport.environment.space2d.KdNode.KdValueFetcherX
-
- All Implemented Interfaces:
KdNode.IKdValueFetcher
- Enclosing class:
- KdNode
protected static class KdNode.KdValueFetcherX extends java.lang.Object implements KdNode.IKdValueFetcher
Fetcher for the x-axis values.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.Comparator
COMPARATOR
Static comparator to avoid instantiation overheadstatic KdNode.KdValueFetcherX
FETCHER
Static fetcher to avoid instantiation overhead
-
Constructor Summary
Constructors Modifier Constructor Description protected
KdValueFetcherX()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
FETCHER
public static final KdNode.KdValueFetcherX FETCHER
Static fetcher to avoid instantiation overhead
-
COMPARATOR
protected static final java.util.Comparator COMPARATOR
Static comparator to avoid instantiation overhead
-
-
Method Detail
-
getValue
public double getValue(IVector2 point)
Returns the coordinate value of the current hyperplane.- Specified by:
getValue
in interfaceKdNode.IKdValueFetcher
- Parameters:
point
- The input value.- Returns:
- Coordinate value of the current hyperplane.
-
nextFetcher
public KdNode.IKdValueFetcher nextFetcher()
Returns the fetcher for the next hyperplane in the tree.- Specified by:
nextFetcher
in interfaceKdNode.IKdValueFetcher
- Returns:
- Fetcher for the next hyperplane in the tree.
-
getComparator
public java.util.Comparator<ISpaceObject> getComparator()
Returns a comparator for sorting within the current hyperplane.- Specified by:
getComparator
in interfaceKdNode.IKdValueFetcher
- Returns:
- Comparator for sorting within the current hyperplane.
-
-