Function tangentQuadraticBezier

  • Computes the tangent to a quadratic Bézier curve.

    Parameters

    • t: number

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

    • p0: number

      The first control point.

    • p1: number

      The second control point.

    • p2: number

      The third control point.

    Returns number

    The tangent vector at the given parameter t.