velocityOf

fun velocityOf(samples: List<Pair<Double, Float>>, now: Double, window: Double = VELOCITY_WINDOW): Float(source)

The speed over the samples (time, yaw) in the last window before now, zero without enough of them. The span runs to now, so a hand that stopped before letting go reads as slower.