Lines Matching refs:distance
159 float distance = (float) Math.hypot(xDist, yDist);
160 if (!mTouchSlopExeeded && distance > mTouchSlop) {
165 distance = mTranslationOnDown - distance;
166 distance = Math.min(0, distance);
168 distance = mTranslationOnDown + distance;
169 distance = Math.max(0, distance);
171 setTranslation(distance, false /* isReset */, false /* animateReset */);
212 double distance = Math.hypot(x - iconX, y - iconY);
213 return distance <= mTouchTargetSize / 2;
493 // Project the velocity onto the distance vector: a * b / |b|