getVelocityFromNanos

open override fun getVelocityFromNanos(playTimeNanos: Long, initialValue: Float, targetValue: Float, initialVelocity: Float): Float

Calculates the velocity of the animation at given the playtime, with the provided start/end values, and start velocity.

Parameters

playTimeNanos

time since the start of the animation

initialValue

start value of the animation

targetValue

end value of the animation

initialVelocity

start velocity of the animation