Engine
/
com.drake.engine.swipeback
/
DecelerateAnimator
/
getDurationByDistance
get
Duration
By
Distance
@
JvmOverloads
()
fun
getDurationByDistance
(distance:
Float
, frictionCoeff:
Float
= 1f):
Long
Content copied to clipboard
根据位移距离计算持续时间
Parameters
distance
位移距离
frictionCoeff
摩擦系数