Lines Matching refs:x
89 float x, tx, coef;
91 x = x_min + (x_max - x_min) / 2.0f;
92 coef = 3.0f * x * (1.0f - x);
93 tx = coef * ((1.0f - x) * P1 + x * P2) + x * x * x;
95 if (tx > alpha) x_max = x;
96 else x_min = x;
98 SPLINE_POSITION[i] = coef * ((1.0f - x) * START_TENSION + x) + x * x * x;
287 float x = timePassed * mDurationReciprocal; in computeScrollOffset() local
290 x = viscousFluid(x); in computeScrollOffset()
292 x = mInterpolator.getInterpolation(x); in computeScrollOffset()
294 mCurrX = mStartX + Math.round(x * mDeltaX); in computeScrollOffset()
295 mCurrY = mStartY + Math.round(x * mDeltaY); in computeScrollOffset()
474 static float viscousFluid(float x) in viscousFluid() argument
476 x *= sViscousFluidScale; in viscousFluid()
477 if (x < 1.0f) { in viscousFluid()
478 x -= (1.0f - (float)Math.exp(-x)); in viscousFluid()
481 x = 1.0f - (float)Math.exp(1.0f - x); in viscousFluid()
482 x = start + x * (1.0f - start); in viscousFluid()
484 x *= sViscousFluidNormalize; in viscousFluid()
485 return x; in viscousFluid()