Home
last modified time | relevance | path

Searched refs:mInterpolatedX (Results 1 – 3 of 3) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DHermiteInterpolatorTests.java72 assertEquals("t=0.0 x", 0.0f, mInterpolator.mInterpolatedX, EPSILON); in testP0P1()
76 assertEquals("t=0.2 x", 0.02400f, mInterpolator.mInterpolatedX, EPSILON); in testP0P1()
80 assertEquals("t=0.5 x", 0.28125f, mInterpolator.mInterpolatedX, EPSILON); in testP0P1()
84 assertEquals("t=0.8 x", 0.69600f, mInterpolator.mInterpolatedX, EPSILON); in testP0P1()
88 assertEquals("t=1.0 x", 1.0f, mInterpolator.mInterpolatedX, EPSILON); in testP0P1()
109 assertEquals("t=0.0 x", 1.0f, mInterpolator.mInterpolatedX, EPSILON); in testP1P2()
113 assertEquals("t=0.2 x", 1.384f, mInterpolator.mInterpolatedX, EPSILON); in testP1P2()
117 assertEquals("t=0.5 x", 2.125f, mInterpolator.mInterpolatedX, EPSILON); in testP1P2()
121 assertEquals("t=0.8 x", 2.776f, mInterpolator.mInterpolatedX, EPSILON); in testP1P2()
125 assertEquals("t=1.0 x", 3.0f, mInterpolator.mInterpolatedX, EPSILON); in testP1P2()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DHermiteInterpolator.java40 public float mInterpolatedX, mInterpolatedY; field in HermiteInterpolator
158 mInterpolatedX = (k1 * mP1X + t * mSlope1X) * omt2 + (k2 * mP2X - omt * mSlope2X) * t2; in interpolate()
DGestureStrokeDrawingPoints.java161 xCoords.addAt(d1, (int)mInterpolator.mInterpolatedX); in interpolateStrokeAndReturnStartIndexOfLastSegment()