Lines Matching refs:distance

155      * @return The new X offset as an absolute distance from the origin.
164 * @return The new Y offset as an absolute distance from the origin.
184 * @return The start X offset as an absolute distance from the origin.
193 * @return The start Y offset as an absolute distance from the origin.
202 * @return The final X offset as an absolute distance from the origin.
211 * @return The final Y offset as an absolute distance from the origin.
254 * @param newX The new X offset as an absolute distance from the origin.
272 * @param newY The new Y offset as an absolute distance from the origin.
344 * Start scrolling by providing a starting point and the distance to travel.
352 * @param dx Horizontal distance to travel. Positive numbers will scroll the
354 * @param dy Vertical distance to travel. Positive numbers will scroll the
362 * Start scrolling by providing a starting point and the distance to travel.
368 * @param dx Horizontal distance to travel. Positive numbers will scroll the
370 * @param dy Vertical distance to travel. Positive numbers will scroll the
407 * Start scrolling based on a fling gesture. The distance traveled will
462 * desired distance from finalX. Absolute value - must be positive.
479 * desired distance from finalY. Absolute value - must be positive.
574 // The allowed overshot distance before boundary is reached.
680 void startScroll(int start, int distance, int duration) {
684 mFinal = start + distance;
845 // We were in fling/scroll mode before: current velocity is such that distance to
853 float distance = mVelocity * mVelocity / (2.0f * Math.abs(mDeceleration));
856 if (distance > mOver) {
859 distance = mOver;
862 mOver = (int) distance;
864 mFinal = mStart + (int) (mVelocity > 0 ? distance : -distance);
910 double distance = 0.0;
926 distance = distanceCoef * mSplineDistance;
934 distance = mVelocity * t + mDeceleration * t * t / 2.0f;
942 distance = sign * mOver * (3.0f * t2 - 2.0f * t * t2);
948 mCurrentPosition = mStart + (int) Math.round(distance);