getVelocityFromNanos

abstract fun getVelocityFromNanos(playTimeNanos: Long, initialValue: Float, initialVelocity: Float): Float

Returns the velocity of the animation at the given time.

Parameters

playTimeNanos

The time elapsed in milliseconds since the start of the animation

initialValue

The start value of the animation

initialVelocity

The start velocity of the animation