initialSlope()
pixi-wheels / index / initialSlope
Function: initialSlope()
function initialSlope(fn: EaseFn): number;
Defined in: utils/easing.ts:97
Numeric slope of an ease at t = 0, as a multiple of the average slope
(which is 1 for a normalised curve). The stop planner divides by this to
match the wheel’s cruise speed at the start of the deceleration, so the
hand-off from cruise to stop has no velocity step.
Parameters#
| Parameter | Type |
|---|---|
fn | EaseFn |
Returns#
number