Lines Matching refs:distance

157      * @return The new X offset as an absolute distance from the origin.
166 * @return The new Y offset as an absolute distance from the origin.
186 * @return The start X offset as an absolute distance from the origin.
195 * @return The start Y offset as an absolute distance from the origin.
204 * @return The final X offset as an absolute distance from the origin.
213 * @return The final Y offset as an absolute distance from the origin.
256 * @param newX The new X offset as an absolute distance from the origin.
274 * @param newY The new Y offset as an absolute distance from the origin.
346 * Start scrolling by providing a starting point and the distance to travel.
354 * @param dx Horizontal distance to travel. Positive numbers will scroll the
356 * @param dy Vertical distance to travel. Positive numbers will scroll the
364 * Start scrolling by providing a starting point and the distance to travel.
370 * @param dx Horizontal distance to travel. Positive numbers will scroll the
372 * @param dy Vertical distance to travel. Positive numbers will scroll the
409 * Start scrolling based on a fling gesture. The distance traveled will
464 * desired distance from finalX. Absolute value - must be positive.
481 * desired distance from finalY. Absolute value - must be positive.
576 // The allowed overshot distance before boundary is reached.
685 void startScroll(int start, int distance, int duration) {
689 mFinal = start + distance;
850 // We were in fling/scroll mode before: current velocity is such that distance to
858 float distance = mVelocity * mVelocity / (2.0f * Math.abs(mDeceleration));
861 if (distance > mOver) {
864 distance = mOver;
867 mOver = (int) distance;
869 mFinal = mStart + (int) (mVelocity > 0 ? distance : -distance);
915 double distance = 0.0;
931 distance = distanceCoef * mSplineDistance;
939 distance = mVelocity * t + mDeceleration * t * t / 2.0f;
947 distance = sign * mOver * (3.0f * t2 - 2.0f * t * t2);
953 mCurrentPosition = mStart + (int) Math.round(distance);