Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DHermiteInterpolator.java34 public float mSlope1X, mSlope1Y; field in HermiteInterpolator
92 mSlope1X = (mP2X - mXCoords[p0]) / 2.0f; in setInterval()
104 mSlope1X = invHalfNormASquare * (dotProdAB * ax + crossProdAB * ay); in setInterval()
108 mSlope1X = ax; in setInterval()
158 mInterpolatedX = (k1 * mP1X + t * mSlope1X) * omt2 + (k2 * mP2X - omt * mSlope2X) * t2; in interpolate()
DGestureStrokeDrawingPoints.java143 final double m1 = Math.atan2(mInterpolator.mSlope1Y, mInterpolator.mSlope1X); in interpolateStrokeAndReturnStartIndexOfLastSegment()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DHermiteInterpolatorTests.java65 assertEquals("slope x p0", -0.25f, mInterpolator.mSlope1X, EPSILON); in testP0P1()
102 assertEquals("slope x p1", 1.50f, mInterpolator.mSlope1X, EPSILON); in testP1P2()
139 assertEquals("slope x p2", 0.50f, mInterpolator.mSlope1X, EPSILON); in testP2P3()
176 assertEquals("slope x p1", 2.00f, mInterpolator.mSlope1X, EPSILON); in testJustP1P2()