Home
last modified time | relevance | path

Searched refs:mXCoords (Results 1 – 2 of 2) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DHermiteInterpolatorTests.java48 private final int[] mXCoords = { 0, 1, 3, 2 }; field in HermiteInterpolatorTests
58 mInterpolator.reset(mXCoords, mYCoords, p0, p3 + 1); in testP0P1()
60 assertEquals("p0x", mXCoords[p0], mInterpolator.mP1X); in testP0P1()
62 assertEquals("p1x", mXCoords[p1], mInterpolator.mP2X); in testP0P1()
95 mInterpolator.reset(mXCoords, mYCoords, p0, p3 + 1); in testP1P2()
97 assertEquals("p1x", mXCoords[p1], mInterpolator.mP1X); in testP1P2()
99 assertEquals("p2x", mXCoords[p2], mInterpolator.mP2X); in testP1P2()
132 mInterpolator.reset(mXCoords, mYCoords, p0, p3 + 1); in testP2P3()
134 assertEquals("p2x", mXCoords[p2], mInterpolator.mP1X); in testP2P3()
136 assertEquals("p3x", mXCoords[p3], mInterpolator.mP2X); in testP2P3()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DHermiteInterpolator.java23 private int[] mXCoords; field in HermiteInterpolator
57 mXCoords = xCoords; in reset()
80 mP1X = mXCoords[p1]; in setInterval()
82 mP2X = mXCoords[p2]; in setInterval()
92 mSlope1X = (mP2X - mXCoords[p0]) / 2.0f; in setInterval()
97 final float bx = (mXCoords[p3] - mP1X) / 2.0f; in setInterval()
116 mSlope2X = (mXCoords[p3] - mP1X) / 2.0f; in setInterval()
121 final float bx = (mP2X - mXCoords[p0]) / 2.0f; in setInterval()