Searched refs:velocityCoef (Results 1 – 2 of 2) sorted by relevance
318 float velocityCoef = 0.f; in computeScrollOffset() local324 velocityCoef = (d_sup - d_inf) / (t_sup - t_inf); in computeScrollOffset()325 distanceCoef = d_inf + (t - t_inf) * velocityCoef; in computeScrollOffset()328 mCurrVelocity = velocityCoef * mDistance / mDuration * 1000.0f; in computeScrollOffset()
917 float velocityCoef = 0.f; in update() local923 velocityCoef = (d_sup - d_inf) / (t_sup - t_inf); in update()924 distanceCoef = d_inf + (t - t_inf) * velocityCoef; in update()928 mCurrVelocity = velocityCoef * mSplineDistance / mSplineDuration * 1000.0f; in update()