SpringAnimation.calculateVelocity

double calculateVelocity(uint time)

Calculates the velocity self will have at time.

The time starts at 0 and ends at propertySpringAnimation:estimated_duration.

See also [adw.spring_animation.SpringAnimation.calculateValue].

Parameters

timeelapsed time, in milliseconds

Returns

the velocity at time