This commit is contained in:
agra
2025-02-02 15:05:11 +02:00
parent 8626e8c2c6
commit 2777b5f746
16 changed files with 216 additions and 330 deletions

View File

@@ -2,7 +2,7 @@ import 'dart:math';
import 'dart:ui';
double bezierLength(Bezier bezier, [double steps = 10]) {
assert(bezier != null && steps != 0);
assert(steps != 0);
final step = 1 / steps;
var c = bezier.point(0);
var length = 0.0;