constantAccelEase()
pixi-wheels / index / constantAccelEase
Function: constantAccelEase()
function constantAccelEase(v0: number, v1: number): EaseFn;
Defined in: utils/easing.ts:130
The position curve of a constant-acceleration leg between two speeds.
Normalised so f(0) = 0, f(1) = 1; the duration that makes this leg
physically consistent is 2 * distance / (v0 + v1).
With v1 = 0 this is exactly power1.out; with v0 = 0 it is power1.in.
Parameters#
| Parameter | Type |
|---|---|
v0 | number |
v1 | number |