Class KdNode.KdValueFetcherX

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.util.Comparator COMPARATOR
      Static comparator to avoid instantiation overhead
      static 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COMPARATOR

        protected static final java.util.Comparator COMPARATOR
        Static comparator to avoid instantiation overhead
    • Constructor Detail

      • KdValueFetcherX

        protected KdValueFetcherX()
    • Method Detail

      • getValue

        public double getValue​(IVector2 point)
        Returns the coordinate value of the current hyperplane.
        Specified by:
        getValue in interface KdNode.IKdValueFetcher
        Parameters:
        point - The input value.
        Returns:
        Coordinate value of the current hyperplane.
      • getComparator

        public java.util.Comparator<ISpaceObject> getComparator()
        Returns a comparator for sorting within the current hyperplane.
        Specified by:
        getComparator in interface KdNode.IKdValueFetcher
        Returns:
        Comparator for sorting within the current hyperplane.