splineThru method

dynamic splineThru(
  1. dynamic pts
)

Implementation

splineThru(pts /*Array of Vector*/) {
  var npts = [currentPoint.clone()];
  npts.addAll(pts);

  var curve = SplineCurve(npts);
  curves.add(curve);

  currentPoint.copy(pts[pts.length - 1]);

  return this;
}