Package org.locationtech.jts.triangulate
Class SplitSegment
java.lang.Object
org.locationtech.jts.triangulate.SplitSegment
Models a constraint segment which can be split in two in various ways,
according to certain geometric constraints.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate double
private LineSegment
private double
private Coordinate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate double
getConstrainedLength
(double len) private static Coordinate
pointAlongReverse
(LineSegment seg, double segmentLengthFraction) Computes theCoordinate
that lies a given fraction along the line defined by the reverse of the given segment.void
setMinimumLength
(double minLen) void
splitAt
(double length, Coordinate endPt) void
splitAt
(Coordinate pt)
-
Field Details
-
seg
-
segLen
private double segLen -
splitPt
-
minimumLen
private double minimumLen
-
-
Constructor Details
-
SplitSegment
-
-
Method Details
-
pointAlongReverse
Computes theCoordinate
that lies a given fraction along the line defined by the reverse of the given segment. A fraction of0.0
returns the end point of the segment; a fraction of1.0
returns the start point of the segment.- Parameters:
seg
- the LineSegmentsegmentLengthFraction
- the fraction of the segment length along the line- Returns:
- the point at that distance
-
setMinimumLength
public void setMinimumLength(double minLen) -
getSplitPoint
-
splitAt
-
splitAt
-
getConstrainedLength
private double getConstrainedLength(double len)
-