GetSplinePointCatmullRom method

Vector2D GetSplinePointCatmullRom(
  1. Vector2D p1,
  2. Vector2D p2,
  3. Vector2D p3,
  4. Vector2D p4,
  5. num t,
)

Get (evaluate) spline point: Catmull-Rom

Implementation

Vector2D GetSplinePointCatmullRom(
  Vector2D p1,
  Vector2D p2,
  Vector2D p3,
  Vector2D p4,
  num t,
) => run(
  () => _debugLabels.GetSplinePointCatmullRom(p1, p2, p3, p4, t),
  () => _flat.GetSplinePointCatmullRom(
    p1,
    p2,
    p3,
    p4,
    t.toDouble(),
  ),
);