Lines Matching refs:Math
65 private static float DECELERATION_RATE = (float) (Math.log(0.78) / Math.log(0.9));
94 if (Math.abs(tx - alpha) < 1E-5) break;
106 if (Math.abs(dy - alpha) < 1E-5) break;
294 mCurrX = mStartX + Math.round(x * mDeltaX);
295 mCurrY = mStartY + Math.round(x * mDeltaY);
313 mCurrX = mStartX + Math.round(distanceCoef * (mFinalX - mStartX));
315 mCurrX = Math.min(mCurrX, mMaxX);
316 mCurrX = Math.max(mCurrX, mMinX);
318 mCurrY = mStartY + Math.round(distanceCoef * (mFinalY - mStartY));
320 mCurrY = Math.min(mCurrY, mMaxY);
321 mCurrY = Math.max(mCurrY, mMinY);
411 float hyp = (float) Math.hypot(dx, dy);
418 if (Math.signum(velocityX) == Math.signum(oldVelocityX) &&
419 Math.signum(velocityY) == Math.signum(oldVelocityY)) {
428 float velocity = (float) Math.hypot(velocityX, velocityY);
440 mDistance = (int) (totalDistance * Math.signum(velocity));
447 mFinalX = startX + (int) Math.round(totalDistance * coeffX);
449 mFinalX = Math.min(mFinalX, mMaxX);
450 mFinalX = Math.max(mFinalX, mMinX);
452 mFinalY = startY + (int) Math.round(totalDistance * coeffY);
454 mFinalY = Math.min(mFinalY, mMaxY);
455 mFinalY = Math.max(mFinalY, mMinY);
459 return Math.log(INFLEXION * Math.abs(velocity) / (mFlingFriction * mPhysicalCoeff));
465 return (int) (1000.0 * Math.exp(l / decelMinusOne));
471 return mFlingFriction * mPhysicalCoeff * Math.exp(DECELERATION_RATE / decelMinusOne * l);
478 x -= (1.0f - (float)Math.exp(-x));
481 x = 1.0f - (float)Math.exp(1.0f - x);
555 return !mFinished && Math.signum(xvel) == Math.signum(mFinalX - mStartX) &&
556 Math.signum(yvel) == Math.signum(mFinalY - mStartY);