UNPKG

@studiometa/js-toolkit

Version:

A set of useful little bits of JavaScript to boost your project! 🚀

11 lines (10 loc) • 454 B
/** * Get the final damped value for a given factor. * * @param initialValue The final value. * @param initialDelta The current value. * @param [dampFactor=0.85] The speed to reach the target value, defaults to `0.85`. * @returns The next value. * @link https://js-toolkit.studiometa.dev/utils/math/inertiaFinalValue.html */ export declare function inertiaFinalValue(initialValue: number, initialDelta: number, dampFactor?: number): number;