public void addEndpoints(){
  int maxSegIndex=edge.pts.length - 1;
  add(edge.pts[0],0,0.0);
  add(edge.pts[maxSegIndex],maxSegIndex,0.0);
}

public void addEndpoints ( ) { int maxSegIndex = edge . pts . length - 1 ; add ( edge . pts [ 0 ] , 0 , 0.0 ) ; add ( edge . pts [ maxSegIndex ] , maxSegIndex , 0.0 ) ; }
adds entries for the first and last points of the edge to the list
