subcurveBetween method
Returns the subcurve obtained by taking the portion of the curve between
parameter values t1
and t2
.
Implementation
Bezier subcurveBetween(double t1, double t2) {
final rightOfT1 = rightSubcurveAt(t1);
final adjustedT2 = inverseMix(t1, 1.0, t2);
return rightOfT1.leftSubcurveAt(adjustedT2);
}