• Computes the full cubic Bézier curve using the control points p0, p1, p2, and p3.

    Parameters

    • t: number

      The parameter (0 ≤ t ≤ 1).

    • p0: number

      The first control point.

    • p1: number

      The second control point.

    • p2: number

      The third control point.

    • p3: number

      The fourth control point.

    Returns number

    The value of the cubic Bézier curve at the given parameter t.