Class KdTree.BestMatchVisitor

  • All Implemented Interfaces:
    KdNodeVisitor
    Enclosing class:
    KdTree

    private static class KdTree.BestMatchVisitor
    extends java.lang.Object
    implements KdNodeVisitor
    • Field Detail

      • tolerance

        private double tolerance
      • matchNode

        private KdNode matchNode
      • matchDist

        private double matchDist
    • Constructor Detail

      • BestMatchVisitor

        public BestMatchVisitor​(Coordinate p,
                                double tolerance)
    • Method Detail

      • queryEnvelope

        public Envelope queryEnvelope()
      • getNode

        public KdNode getNode()
      • visit

        public void visit​(KdNode node)
        Description copied from interface: KdNodeVisitor
        Visits a node.
        Specified by:
        visit in interface KdNodeVisitor
        Parameters:
        node - the node to visit