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 doubleprivate LineSegmentprivate doubleprivate Coordinate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate doublegetConstrainedLength(double len) private static CoordinatepointAlongReverse(LineSegment seg, double segmentLengthFraction) Computes theCoordinatethat lies a given fraction along the line defined by the reverse of the given segment.voidsetMinimumLength(double minLen) voidsplitAt(double length, Coordinate endPt) voidsplitAt(Coordinate pt)
-
Field Details
-
seg
-
segLen
private double segLen -
splitPt
-
minimumLen
private double minimumLen
-
-
Constructor Details
-
SplitSegment
-
-
Method Details
-
pointAlongReverse
Computes theCoordinatethat lies a given fraction along the line defined by the reverse of the given segment. A fraction of0.0returns the end point of the segment; a fraction of1.0returns 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)
-