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.java53 private final int[] mXCoords = { 0, 1, 3, 2 }; field in HermiteInterpolatorTests
62 mInterpolator.reset(mXCoords, mYCoords, p0, p3 + 1); in testP0P1()
64 assertEquals("p0x", mXCoords[p0], mInterpolator.mP1X); in testP0P1()
66 assertEquals("p1x", mXCoords[p1], mInterpolator.mP2X); in testP0P1()
98 mInterpolator.reset(mXCoords, mYCoords, p0, p3 + 1); in testP1P2()
100 assertEquals("p1x", mXCoords[p1], mInterpolator.mP1X); in testP1P2()
102 assertEquals("p2x", mXCoords[p2], mInterpolator.mP2X); in testP1P2()
134 mInterpolator.reset(mXCoords, mYCoords, p0, p3 + 1); in testP2P3()
136 assertEquals("p2x", mXCoords[p2], mInterpolator.mP1X); in testP2P3()
138 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()