sampleParameters method

  1. @override
List<double> sampleParameters()
override

The natural parameters at which the curve is sampled when baking the arc-length and frame tables. Strictly increasing, starting at 0 and ending at 1.

Implementation

@override
List<double> sampleParameters() {
  final segments = _points.length - 1;
  return <double>[for (var i = 0; i <= segments; i++) i / segments];
}