smooth static method

List<Point<num>> smooth(
  1. List<Point<num>> points,
  2. num sampleCount, {
  3. bool isSorted = true,
})

Creates a sampled curve going through list of points.

sampleCount is a number of points of the resulting smoothed curve

Returns a list of length sampleCount points that lay on a curve going through the given points.

Implementation

static List<Point<num>> smooth(
  List<Point> points,
  num sampleCount, {
  bool isSorted = true,
}) {
  return points.smooth(sampleCount, isSorted: isSorted);
}