JTS Topology Suite version 1.12

com.vividsolutions.jts.triangulate
Class MidpointSplitPointFinder

java.lang.Object
  extended by com.vividsolutions.jts.triangulate.MidpointSplitPointFinder
All Implemented Interfaces:
ConstraintSplitPointFinder

public class MidpointSplitPointFinder
extends java.lang.Object
implements ConstraintSplitPointFinder

A simple split point finder which returns the midpoint of the split segment. This is a default strategy only. Usually a more sophisticated strategy is required to prevent repeated splitting. Other points which could be used are:

Author:
Martin Davis

Constructor Summary
MidpointSplitPointFinder()
           
 
Method Summary
 Coordinate findSplitPoint(Segment seg, Coordinate encroachPt)
          Gets the midpoint of the split segment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MidpointSplitPointFinder

public MidpointSplitPointFinder()
Method Detail

findSplitPoint

public Coordinate findSplitPoint(Segment seg,
                                 Coordinate encroachPt)
Gets the midpoint of the split segment

Specified by:
findSplitPoint in interface ConstraintSplitPointFinder
Parameters:
seg - the encroached segment
encroachPt - the encroaching point
Returns:
the point at which to split the encroached segment

JTS Topology Suite version 1.12