getPoints method
divisions -- number of pieces to divide the curve into. Default is 5
.
Returns a set of divisions + 1 points using getPoint( t ).
Implementation
List<Vector?> getPoints([int divisions = 5]) {
final List<Vector?> points = [];
for (int d = 0; d <= divisions; d++) {
points.add(getPoint(d / divisions));
}
return points;
}