public class MCIndexPointSnapper extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
MCIndexPointSnapper
|
| Constructor and Description |
|---|
MCIndexPointSnapper(SpatialIndex
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
snap(HotPixel
|
boolean |
snap(HotPixel
Snaps (nodes) all interacting segments to this hot pixel.
|
public MCIndexPointSnapper(SpatialIndexindex)
public boolean snap(HotPixelhotPixel, SegmentString parentEdge, int hotPixelVertexIndex)
hotPixel - the hot pixel to snap to
parentEdge - the edge containing the vertex, if applicable, or
null
hotPixelVertexIndex - the index of the hotPixel vertex, if applicable, or -1
true if a node was added for this pixel
public boolean snap(HotPixelhotPixel)