DampedTransitioner

constructor(timer: Timer, scheduler: AnimationScheduler, decelerationTime: Measure<Time> = 1 * seconds, dampLevel: Measure<InverseUnits<Time>> = 10 / seconds, stopSpeedThreshold: Measure<InverseUnits<Time>> = 10 / seconds, stopDistanceThreshold: Double = 0.01, velocitySampleWindow: Measure<Time> = 100 * milliseconds)(source)

Parameters

timer

used to track current time

scheduler

used to manage animation

decelerationTime

indicating how quickly stops should decelerate to 0 velocity

dampLevel

indicating how much critical damping should be applied during stopping

stopSpeedThreshold

the speed below which the transition is considered done

stopDistanceThreshold

the threshold from the target that is considered close enough to stop

velocitySampleWindow

use to average velocity across