Class NonEncroachingSplitPointFinder

Hierarchy: Object , NonEncroachingSplitPointFinder
All Implemented Interfaces: ConstraintSplitPointFinder
public class NonEncroachingSplitPointFinder
implements ConstraintSplitPointFinder
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).
Authors:
Martin Davis
public NonEncroachingSplitPointFinder()
public Coordinate findSplitPoint(Segment seg, Coordinate encroachPt)
A basic strategy for finding split points when nothing extra is known about the geometry of the situation.
Parameters:
seg - seg the encroached segment
encroachPt - encroachPt the encroaching point
Returns:
the point at which to split the encroached segment
public static Coordinate projectedSplitPoint(Segment seg, Coordinate encroachPt)
Computes a split point which is the projection of the encroaching point on the segment
Parameters:
seg - seg
encroachPt - encroachPt
Returns:
a split point on the segment