Variable cubicBezierEasingConst
cubicBezierEasing: (
control: readonly [number, number, number, number],
t: number,
) => number = ...
Type Declaration
-
- (control: readonly [number, number, number, number], t: number): number
-
Parameters
- control: readonly [number, number, number, number]
- t: number
Returns number
Evaluate a CSS-style cubic Bézier easing
[x1, y1, x2, y2]at progresst.Solves the parametric x(s) = t for the curve parameter
s(Newton with a bisection fallback), then returns y(s). Endpoints are fixed at (0,0)–(1,1). The caller supplies CSS-legal x controls in [0,1], as validateMotion requires; finite y controls may overshoot the output interval. Progress is clamped to [0,1].