Class NonEncroachingSplitPointFinder
A strategy for finding constraint split points which attempts to maximise the length of the split segments while preventing further encroachment. (This is not always possible for narrow angles).
Implements
Inherited Members
Namespace: NetTopologySuite.Triangulate
Assembly: NetTopologySuite.dll
Syntax
public class NonEncroachingSplitPointFinder : IConstraintSplitPointFinder
Methods
| Edit this page View SourceFindSplitPoint(Segment, Coordinate)
A basic strategy for finding split points when nothing extra is known about the geometry of the situation.
Declaration
public Coordinate FindSplitPoint(Segment seg, Coordinate encroachPt)
Parameters
Type | Name | Description |
---|---|---|
Segment | seg | the encroached segment |
Coordinate | encroachPt | the encroaching point |
Returns
Type | Description |
---|---|
Coordinate | the point at which to split the encroached segment |
ProjectedSplitPoint(Segment, Coordinate)
Computes a split point which is the projection of the encroaching point on the segment
Declaration
public static Coordinate ProjectedSplitPoint(Segment seg, Coordinate encroachPt)
Parameters
Type | Name | Description |
---|---|---|
Segment | seg | The segment |
Coordinate | encroachPt | The enchroaching point |
Returns
Type | Description |
---|---|
Coordinate | A split point on the segment |