Engine
/
com.drake.engine.swipeback
/
DecelerateAnimator
/
getDistanceByDuration
get
Distance
By
Duration
@
JvmOverloads
()
fun
getDistanceByDuration
(duration:
Long
, frictionCoeff:
Float
= 1f):
Float
Content copied to clipboard
根据时间计算位移距离,无方向性
Parameters
duration
动画时间
frictionCoeff
摩擦系数