Searched refs:mYCoords (Results 1 – 2 of 2) sorted by relevance
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
D | HermiteInterpolatorTests.java | 49 private final int[] mYCoords = { 1, 0, 2, 3 }; field in HermiteInterpolatorTests 58 mInterpolator.reset(mXCoords, mYCoords, p0, p3 + 1); in testP0P1() 61 assertEquals("p0y", mYCoords[p0], mInterpolator.mP1Y); in testP0P1() 63 assertEquals("p1y", mYCoords[p1], mInterpolator.mP2Y); in testP0P1() 95 mInterpolator.reset(mXCoords, mYCoords, p0, p3 + 1); in testP1P2() 98 assertEquals("p1y", mYCoords[p1], mInterpolator.mP1Y); in testP1P2() 100 assertEquals("p2y", mYCoords[p2], mInterpolator.mP2Y); in testP1P2() 132 mInterpolator.reset(mXCoords, mYCoords, p0, p3 + 1); in testP2P3() 135 assertEquals("p2y", mYCoords[p2], mInterpolator.mP1Y); in testP2P3() 137 assertEquals("p3y", mYCoords[p3], mInterpolator.mP2Y); in testP2P3() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | HermiteInterpolator.java | 24 private int[] mYCoords; field in HermiteInterpolator 58 mYCoords = yCoords; in reset() 81 mP1Y = mYCoords[p1]; in setInterval() 83 mP2Y = mYCoords[p2]; in setInterval() 93 mSlope1Y = (mP2Y - mYCoords[p0]) / 2.0f; in setInterval() 98 final float by = (mYCoords[p3] - mP1Y) / 2.0f; in setInterval() 117 mSlope2Y = (mYCoords[p3] - mP1Y) / 2.0f; in setInterval() 122 final float by = (mP2Y - mYCoords[p0]) / 2.0f; in setInterval()
|