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 |
|---|---|
double |
getTolerance() |
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()
Copyright © 2020. All rights reserved.