Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DHermiteInterpolatorTests.java73 assertEquals("t=0.0 y", 1.0f, mInterpolator.mInterpolatedY, EPSILON); in testP0P1()
77 assertEquals("t=0.2 y", 0.78400f, mInterpolator.mInterpolatedY, EPSILON); in testP0P1()
81 assertEquals("t=0.5 y", 0.34375f, mInterpolator.mInterpolatedY, EPSILON); in testP0P1()
85 assertEquals("t=0.8 y", 0.01600f, mInterpolator.mInterpolatedY, EPSILON); in testP0P1()
89 assertEquals("t=1.0 y", 0.0f, mInterpolator.mInterpolatedY, EPSILON); in testP0P1()
110 assertEquals("t=0.0 y", 0.0f, mInterpolator.mInterpolatedY, EPSILON); in testP1P2()
114 assertEquals("t=0.2 y", 0.224f, mInterpolator.mInterpolatedY, EPSILON); in testP1P2()
118 assertEquals("t=0.5 y", 0.875f, mInterpolator.mInterpolatedY, EPSILON); in testP1P2()
122 assertEquals("t=0.8 y", 1.616f, mInterpolator.mInterpolatedY, EPSILON); in testP1P2()
126 assertEquals("t=1.0 y", 2.0f, mInterpolator.mInterpolatedY, EPSILON); in testP1P2()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DHermiteInterpolator.java40 public float mInterpolatedX, mInterpolatedY; field in HermiteInterpolator
159 mInterpolatedY = (k1 * mP1Y + t * mSlope1Y) * omt2 + (k2 * mP2Y - omt * mSlope2Y) * t2; in interpolate()
DGestureStrokeDrawingPoints.java162 yCoords.addAt(d1, (int)mInterpolator.mInterpolatedY); in interpolateStrokeAndReturnStartIndexOfLastSegment()