fix: added assert to maths

pull/14/head
RuiAlonso 4 years ago
parent 71033266ca
commit 53a22f1f1d

@ -33,6 +33,7 @@ List<Vector2> calculateBezierCurve({
required List<Vector2> controlPoints, required List<Vector2> controlPoints,
double step = 0.001, double step = 0.001,
}) { }) {
assert(0 <= step && step <= 1, 'Range 0<=step<=1');
assert( assert(
controlPoints.length >= 2, controlPoints.length >= 2,
'At least 2 control points to create a bezier curve', 'At least 2 control points to create a bezier curve',

Loading…
Cancel
Save