lerpCatmullRom static method

Offset Function(double value) lerpCatmullRom({
  1. required List<Offset> controlPoints,
  2. double tension = 0.0,
  3. Offset? startHandle,
  4. Offset? endHandle,
})

Implementation

static Offset Function(double value) lerpCatmullRom({
  required List<Offset> controlPoints,
  double tension = 0.0,
  Offset? startHandle,
  Offset? endHandle,
}) =>
    CatmullRomSpline.precompute(
      controlPoints,
      tension: tension,
      startHandle: startHandle,
      endHandle: endHandle,
    ).transform;