public Coordinate[] simplify(double distanceTol){
  this.distanceTol=Math.abs(distanceTol);
  if (distanceTol < 0)   angleOrientation=CGAlgorithms.CLOCKWISE;
  isDeleted=new byte[inputLine.length];
  boolean isChanged=false;
  do {
    isChanged=deleteShallowConcavities();
  }
 while (isChanged);
  return collapseLine();
}

public Coordinate [ ] simplify ( double distanceTol ) { this . distanceTol = Math . abs ( distanceTol ) ; if ( distanceTol < 0 ) angleOrientation = CGAlgorithms . CLOCKWISE ; isDeleted = new byte [ inputLine . length ] ; boolean isChanged = false ; do { isChanged = deleteShallowConcavities ( ) ; } while ( isChanged ) ; return collapseLine ( ) ; }
simplify the input coordinate list . if the distance tolerance is positive , concavities on the left side of the line are simplified . if the supplied distance tolerance is negative , concavities on the right side of the line are simplified .
