Engine
/
com.drake.engine.swipeback
/
DecelerateAnimator
/
getDurationByVelocity
get
Duration
By
Velocity
@
JvmOverloads
()
fun
getDurationByVelocity
(velocity:
Float
, frictionCoeff:
Float
= 1f):
Long
Content copied to clipboard
根据初速度计算持续时间
Parameters
velocity
初速度
frictionCoeff
摩擦系数