Searched refs:mSlope2X (Results 1 – 3 of 3) sorted by relevance
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | HermiteInterpolator.java | 36 public float mSlope2X, mSlope2Y; field in HermiteInterpolator 116 mSlope2X = (mXCoords[p3] - mP1X) / 2.0f; in setInterval() 128 mSlope2X = invHalfNormASquare * (dotProdAB * ax + crossProdAB * ay); in setInterval() 132 mSlope2X = ax; in setInterval() 158 mInterpolatedX = (k1 * mP1X + t * mSlope1X) * omt2 + (k2 * mP2X - omt * mSlope2X) * t2; in interpolate()
|
D | GestureStrokeDrawingPoints.java | 144 final double m2 = Math.atan2(mInterpolator.mSlope2Y, mInterpolator.mSlope2X); in interpolateStrokeAndReturnStartIndexOfLastSegment()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
D | HermiteInterpolatorTests.java | 72 assertFloatEquals("slope x p1", 1.50f, mInterpolator.mSlope2X); in testP0P1() 108 assertFloatEquals("slope x p2", 0.50f, mInterpolator.mSlope2X); in testP1P2() 144 assertFloatEquals("slope x p3", -0.75f, mInterpolator.mSlope2X); in testP2P3() 180 assertFloatEquals("slope x p2", 2.00f, mInterpolator.mSlope2X); in testJustP1P2()
|