Simulate<T> typedef

Simulate<T> = Sim<T> Function(T start, T end, T velocity)

Generates a Sim with given params.

Used by MovingTargetAnimation to create new springs whenever the target moves, picking up from current value and velocity.

Implementation

typedef Simulate<T> = Sim<T> Function(T start, T end, T velocity);