Class

FlingCalculator.FlingInfo

Info about a fling started with initialVelocity.

Common
data class FlingInfo(val initialVelocity: Float, val distance: Float, val duration: Long)

Info about a fling started with initialVelocity. The units of initialVelocity determine the distance units of distance and the time units of duration.

Functions

position

fun position(time: Long): Float

velocity

fun velocity(time: Long): Float