Home
last modified time | relevance | path

Searched refs:hypot (Results 1 – 25 of 30) sorted by relevance

12

/packages/apps/Dialer/InCallUI/src/com/android/incallui/widget/multiwaveview/
DPointCloud.java169 private static float hypot(float x, float y) { in hypot() method in PointCloud
170 return (float) Math.hypot(x, y); in hypot()
179 float glowDistance = hypot(glowManager.x - point.x, glowManager.y - point.y); in getAlphaForPoint()
188 float radius = hypot(point.x, point.y); in getAlphaForPoint()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DBogusMoveEventDetector.java69 final float keyDiagonal = (float)Math.hypot(keyWidth, keyHeight); in setKeyboardGeometry()
108 return (int)Math.hypot(x1 - x2, y1 - y2); in getDistance()
DGestureStrokeDrawingPoints.java65 mDistanceFromLastSample += Math.hypot(x - mLastX, y - mLastY); in needsSampling()
148 final double deltaDistance = Math.hypot(mInterpolator.mP1X - mInterpolator.mP2X, in interpolateStrokeAndReturnStartIndexOfLastSegment()
DRoundedLine.java49 final double l = Math.hypot(dx, dy); in makePath()
DGestureStrokeRecognitionPoints.java332 return (int)Math.hypot(x1 - x2, y1 - y2); in getDistance()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DGeometryMathUtils.java154 float length = (float) Math.hypot(a[0], a[1]); in normalize()
163 float length = (float) Math.hypot(b[0], b[1]); in scalarProjection()
178 float length = (float) Math.hypot(p[0], p[1]); in getUnitVectorFromPoints()
201 return (float) Math.hypot(a[0], a[1]); in vectorLength()
DGradControl.java113 float dist = (float) Math.hypot(dx, dy); in getCloseHandle()
239 float len = (float) Math.hypot(dx, dy); in paintOvallines()
DImageCurves.java226 double delta = Math.hypot(px - x, py - y); in pickControlPoint()
230 double currentDelta = Math.hypot(px - x, py - y); in pickControlPoint()
DImageGrad.java76 float d = (float) Math.hypot(x - mPointsX[i], y - mPointsY[i]); in onTouchEvent()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DEyePosition.java172 mX = Utils.clamp((float) (mX + x * t / Math.hypot(mZ, mX)), in onGyroscopeChanged()
174 mY = Utils.clamp((float) (mY + y * t / Math.hypot(mZ, mY)), in onGyroscopeChanged()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTouchListener.java103 final float v = (float) Math.hypot(dX, dY); in onFling()
208 double distance = Math.hypot(x0 - mInitialTouchX, in onTouch()
DPhotoTable.java344 return Math.hypot(a[0], a[1]); in norm()
779 if (Math.hypot(b[0] - a[0], b[1] - a[1]) < Math.hypot(c[0] - a[0], c[1] - a[1])) { in fling()
787 final float dist = (float) Math.hypot(delta[0], delta[1]); in fling()
859 float dist = (float) Math.hypot(dx, dy); in dropOnTable()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DScroller.java374 float hyp = (float) Math.hypot(dx, dy); in fling()
391 float velocity = (float) Math.hypot(velocityX, velocityY); in fling()
DOverScroller.java177 return (float) Math.hypot(mScrollerX.mCurrVelocity, mScrollerY.mCurrVelocity); in getCurrVelocity()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherScroller.java411 float hyp = (float) Math.hypot(dx, dy); in fling()
428 float velocity = (float) Math.hypot(velocityX, velocityY); in fling()
DLauncherStateTransitionAnimation.java236 float revealRadius = (float) Math.hypot(width / 2, height / 2); in startAnimationToOverlay()
533 float revealRadius = (float) Math.hypot(width / 2, height / 2); in startAnimationToWorkspaceFromOverlay()
DInvariantDeviceProfile.java240 return (float) Math.hypot(x1 - x0, y1 - y0); in dist()
DDragController.java518 mDistanceSinceScroll += Math.hypot(mLastTouch[0] - x, mLastTouch[1] - y); in handleMoveEvent()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DProximityInfo.java182 * (float)Math.hypot(mMostCommonKeyWidth, mMostCommonKeyHeight); in createNativeProximityInfo()
197 final float hitBoxDiagonal = (float)Math.hypot(hitBoxWidth, hitBoxHeight); in createNativeProximityInfo()
DPointerTracker.java480 return (int)Math.hypot(x1 - x2, y1 - y2); in getDistance()
809 final float keyDiagonal = (float)Math.hypot( in processProximateBogusDownMoveUpEventHack()
1105 final float keyDiagonal = (float)Math.hypot( in isMajorEnoughMoveToBeOnNewKey()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DFlingScroller.java85 double velocity = Math.hypot(velocityX, velocityY); in fling()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DAccelerometerListener.java126 final double xy = Math.hypot(x, y); in onSensorEvent()
/packages/experimental/DreamTheater/src/com/android/dreamtheater/
DBouncyDroid.java70 return (float) Math.hypot(x, y); in mag()
376 final float mag = (float) Math.hypot(vx, vy); in drawVector()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DFilterGradRepresentation.java218 double dist = Math.hypot(point.xPos1 - x, point.yPos1 - y); in addBand()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsContainerView.java573 float distance = (float) Math.hypot(dx, dy); in handleTouchEvent()

12