Class StretchedVertex
java.lang.Object
org.locationtech.jtstest.testbuilder.topostretch.StretchedVertex
Models a vertex of a Geometry which will be stretched
due to being too near other segments and vertices.
Currently for simplicity a vertex is assumed to be near only one segment or other vertex. This is sufficient for most cases.
- Author:
- Martin Davis
-
Constructor Summary
ConstructorsConstructorDescriptionStretchedVertex
(Coordinate vertexPt, Coordinate nearPt, Coordinate[] nearPts, int nearIndex) Creates a vertex which lies near a vertexStretchedVertex
(Coordinate vertexPt, LineSegment nearSeg) Creates a vertex for a point which lies near a line segment -
Method Summary
Modifier and TypeMethodDescriptiongetStretchedVertex
(double dist) Gets the point which this near vertex will be stretched to (by a given distance)
-
Constructor Details
-
StretchedVertex
Creates a vertex which lies near a vertex -
StretchedVertex
Creates a vertex for a point which lies near a line segment- Parameters:
vertexPt
-nearSeg
-parentLine
-parentIndex
-
-
-
Method Details
-
getVertexCoordinate
-
getStretchedVertex
Gets the point which this near vertex will be stretched to (by a given distance)- Parameters:
dist
- the distance to adjust the point by- Returns:
- the stretched coordinate
-