meo-canvas
    Preparing search index...

    Function cubicBezier

    • The CSS cubic-bezier(x1, y1, x2, y2) curve.

      Newton first, bisection as the fallback, and the fallback is not decoration: Newton stalls where the curve is near-flat, and bisection cannot. The iteration cap and epsilon are v1's, and they are part of the answer rather than of the performance — a different cap converges to a different last bit, so the vectors pin them as surely as they pin the algebra.

      Parameters

      • x1: number
      • y1: number
      • x2: number
      • y2: number

      Returns (t: number) => number