Function: CubicBezierEase()
ts
function CubicBezierEase(
x1,
y1,
x2,
y2,
t
): number;CSS cubic-bezier timing: the curve's y where its x equals t. x(s) is solved for s by Newton steps, falling back to bisection where the slope is flat — no allocation, it runs per curve per tick.
Parameters
| Parameter | Type |
|---|---|
x1 | number |
y1 | number |
x2 | number |
y2 | number |
t | number |
Returns
number