subcurveBetween method

Bezier subcurveBetween(
  1. double t1,
  2. double t2
)

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);
}