public class StretchedVertex extends Object
Currently for simplicity a vertex is assumed to be near only one segment or other vertex. This is sufficient for most cases.
| Constructor and Description |
|---|
StretchedVertex(Coordinate vertexPt,
Coordinate[] parentLine,
int parentIndex,
Coordinate nearPt,
Coordinate[] nearPts,
int nearIndex)
Creates a vertex which lies near a vertex
|
StretchedVertex(Coordinate vertexPt,
Coordinate[] parentLine,
int parentIndex,
LineSegment nearSeg)
Creates a vertex for a point which lies near a line segment
|
| Modifier and Type | Method and Description |
|---|---|
Coordinate |
getStretchedVertex(double dist)
Gets the point which this near vertex will be stretched to
(by a given distance)
|
Coordinate |
getVertexCoordinate() |
public StretchedVertex(Coordinate vertexPt, Coordinate[] parentLine, int parentIndex, Coordinate nearPt, Coordinate[] nearPts, int nearIndex)
public StretchedVertex(Coordinate vertexPt, Coordinate[] parentLine, int parentIndex, LineSegment nearSeg)
vertexPt - parentLine - parentIndex - nearSeg - public Coordinate getVertexCoordinate()
public Coordinate getStretchedVertex(double dist)
dist - the distance to adjust the point byCopyright © 2025. All rights reserved.