Function tangentSpline

  • Computes the tangent to a spline.

    Parameters

    • t: number

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

    Returns number

    The tangent vector at the given parameter t.