public static GeneralPath stackSpline(GeneralPath p,float[] pts,float epsilon,float slack,boolean closed,float tx,float ty){
  int npoints=0;
  for (; npoints < pts.length; ++npoints)   if (Float.isNaN(pts[npoints]))   break;
  return stackSpline(p,pts,0,npoints / 2,epsilon,slack,closed,tx,ty);
}

public static GeneralPath stackSpline ( GeneralPath p , float [ ] pts , float epsilon , float slack , boolean closed , float tx , float ty ) { int npoints = 0 ; for ( ; npoints < pts . length ; ++ npoints ) if ( Float . isNaN ( pts [ npoints ] ) ) break ; return stackSpline ( p , pts , 0 , npoints / 2 , epsilon , slack , closed , tx , ty ) ; }
computes a set of curves using the cardinal spline approach , but using straight lines for completely horizontal or vertical segments .
