Function catmullRomInterpolate

  • Performs Catmull-Rom interpolation on a curve.

    Parameters

    • p0: number

      The first control point.

    • p1: number

      The second control point.

    • p2: number

      The third control point.

    • p3: number

      The fourth control point.

    • t: number

      The parameter (0 ≤ t ≤ 1) to evaluate the interpolation at.

    Returns number

    The interpolated value at the given parameter t.