% -*- texinfo -*- % @deftypefn{Function File} {[@var{xs}, @var{ys}] =} adresamp2 (@var{x}, @var{y}, @var{n}, @var{eps}) % Perform an adaptive resampling of a planar curve. % The arrays @var{x} and @var{y} specify x and y coordinates of the points of the curve. % On return, the same curve is approximated by @var{xs}, @var{ys} that have length @var{n} % and the angles between successive segments are approximately equal. % @end deftypefn