Function cubic_spline

  • Create a curve from the cubic spline interpolation of the given points

    Parameters

    • points: Vector2[]

      array of points to interpolate

    • n: number = 10

      number of points to interpolate between each pair of points (default 10)

    Returns Diagram