Documentation
    Preparing search index...

    Function catmullRomSpline

    • Catmull-Rom spline interpolation. Takes a set of control points and returns a smooth curve passing through all of them.

      Parameters

      • points: Point[]

        Input control points

      • Optionalsegments: number

        Number of interpolation segments between each pair of control points

      • Optionalalpha: number

        Parameterisation: 0 = uniform, 0.5 = centripetal (recommended), 1 = chordal

      Returns Point[]

      Interpolated points