Searched refs:distanceRatio (Results 1 – 2 of 2) sorted by relevance
1425 float distanceRatio = Math.min(1f, 1.0f * Math.abs(delta) / (2 * halfScreenSize)); in snapToPageWithVelocity() local1427 distanceInfluenceForSnapDuration(distanceRatio); in snapToPageWithVelocity()
3973 float distanceRatio = delta / width; in calculateDuration() local3974 float distanceInfluenceForSnapDuration = distanceInfluenceForSnapDuration(distanceRatio); in calculateDuration()3989 + distanceRatio + " distance:" + distance + " velocity:" + velocity in calculateDuration()