Class KdTree.BestMatchVisitor
- java.lang.Object
-
- org.locationtech.jts.index.kdtree.KdTree.BestMatchVisitor
-
- All Implemented Interfaces:
KdNodeVisitor
- Enclosing class:
- KdTree
private static class KdTree.BestMatchVisitor extends java.lang.Object implements KdNodeVisitor
-
-
Constructor Summary
Constructors Constructor Description BestMatchVisitor(Coordinate p, double tolerance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KdNode
getNode()
Envelope
queryEnvelope()
void
visit(KdNode node)
Visits a node.
-
-
-
Field Detail
-
tolerance
private double tolerance
-
matchNode
private KdNode matchNode
-
matchDist
private double matchDist
-
p
private Coordinate p
-
-
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 interfaceKdNodeVisitor
- Parameters:
node
- the node to visit
-
-