public class SnappingPointIndex extends Object
Constructor and Description |
---|
SnappingPointIndex(double snapTolerance)
Creates a snap point index using a specified distance tolerance.
|
Modifier and Type | Method and Description |
---|---|
int |
depth()
Computes the depth of the index tree.
|
double |
getTolerance()
Gets the snapping tolerance value for the index.
|
Coordinate |
snap(Coordinate p)
Snaps a coordinate to an existing snap point,
if it is within the snap tolerance distance.
|
public SnappingPointIndex(double snapTolerance)
snapTolerance
- points are snapped if within this distancepublic Coordinate snap(Coordinate p)
p
- the point to snappublic double getTolerance()
public int depth()
Copyright © 2022. All rights reserved.