Home
last modified time | relevance | path

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

123456

/aosp12/art/test/123-inline-execute2/
H A Dexpected-stdout.txt96 Math.hypot(-3.0, -2.0) = 3.605551275464
104 Math.hypot(-2.0, -1.0) = 2.236067977500
112 Math.hypot(-1.0, 0.0) = 1.000000000000
120 Math.hypot(0.0, 1.0) = 1.000000000000
128 Math.hypot(1.0, 2.0) = 2.236067977500
136 Math.hypot(2.0, 3.0) = 3.605551275464
144 Math.hypot(3.0, 4.0) = 5.000000000000
263 StrictMath.hypot(-1.0, 0.0) = 1.0
271 StrictMath.hypot(0.0, 1.0) = 1.0
279 StrictMath.hypot(1.0, 2.0) = 2.23606797749979
[all …]
/aosp12/bionic/libm/upstream-freebsd/lib/msun/src/
H A Ds_clog.c72 return (CMPLX(log(hypot(x, y)), v)); in clog()
87 return (CMPLX(log(hypot(x * 0x1p-1022, y * 0x1p-1022)) + in clog()
90 return (CMPLX(log(hypot(x, y)), v)); in clog()
94 return (CMPLX(log(hypot(x * 0x1p1023, y * 0x1p1023)) + in clog()
99 return (CMPLX(log(hypot(x, y)), v)); in clog()
H A Ds_csqrtf.c78 t = sqrt((a + hypot(a, b)) * 0.5); in csqrtf()
81 t = sqrt((-a + hypot(a, b)) * 0.5); in csqrtf()
H A Ds_csqrt.c101 t = sqrt((a + hypot(a, b)) * 0.5); in csqrt()
105 t = sqrt((-a + hypot(a, b)) * 0.5); in csqrt()
H A Dcatrig.c161 R = hypot(x, y + 1); /* |z+I| */ in do_hard_work()
162 S = hypot(x, y - 1); /* |z-I| */ in do_hard_work()
485 return (CMPLX(log(hypot(x / m_e, y / m_e)) + 1, atan2(y, x))); in clog_for_large_values()
492 return (CMPLX(log(hypot(x, y)), atan2(y, x))); in clog_for_large_values()
H A Dw_cabs.c18 return hypot(creal(z), cimag(z)); in cabs()
/aosp12/bionic/libm/x86/
H A De_hypot.S82 # -- Begin hypot
83 ENTRY(hypot)
198 END(hypot)
199 # -- End hypot
202 ALIAS_SYMBOL(hypotl, hypot);
/aosp12/bionic/libm/x86_64/
H A De_hypot.S67 # -- Begin hypot
68 ENTRY(hypot)
177 END(hypot)
178 # -- End hypot
/aosp12/frameworks/base/core/java/android/util/
H A DFloatMath.java130 public static float hypot(float x, float y) { in hypot() method in FloatMath
131 return (float) Math.hypot(x, y); in hypot()
H A DMathUtils.java105 return (float) Math.hypot(x, y); in dist()
116 return (float) Math.hypot(a, b); in mag()
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DBogusMoveEventDetector.java69 final float keyDiagonal = (float)Math.hypot(keyWidth, keyHeight); in setKeyboardGeometry()
108 return (int)Math.hypot(x1 - x2, y1 - y2); in getDistance()
H A DGestureStrokeDrawingPoints.java65 mDistanceFromLastSample += Math.hypot(x - mLastX, y - mLastY); in needsSampling()
148 final double deltaDistance = Math.hypot(mInterpolator.mP1X - mInterpolator.mP2X, in interpolateStrokeAndReturnStartIndexOfLastSegment()
/aosp12/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
H A DGestureUtils.java85 final float firstMagnitude = (float) Math.hypot(firstDeltaX, firstDeltaY); in isDraggingGesture()
98 final float secondMagnitude = (float) Math.hypot(secondDeltaX, secondDeltaY); in isDraggingGesture()
/aosp12/frameworks/base/core/java/android/transition/
H A DPatternPathMotion.java120 float distance = (float) Math.hypot(dx, dy); in setPatternPath()
133 float length = (float) Math.hypot(dx, dy); in getPath()
H A DExplode.java153 double vectorSize = Math.hypot(xVector, yVector); in calculateOut()
167 return Math.hypot(maxX, maxY); in calculateMaxDistance()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
H A DRelativeTouchListener.kt26 import kotlin.math.hypot
125 if (!movedEnough && hypot(dx, dy) > touchSlop && !performedLongClick) {
/aosp12/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/
H A DPainting.kt32 fun hypot(x: Float, y: Float): Float { regex
33 return Math.hypot(x.toDouble(), y.toDouble()).toFloat()
191 val d = hypot(s.x - x, s.y - y)
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
H A DPipPinchResizingAlgorithm.java44 float downDist = (float) Math.hypot(downSecondPoint.x - downPoint.x, in calculateBoundsAndAngle()
46 float dist = (float) Math.hypot(lastSecondPoint.x - lastPoint.x, in calculateBoundsAndAngle()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/magnetictarget/
H A DMagnetizedObject.kt36 import kotlin.math.hypot
348 val dragDistance = hypot(ev.rawX - touchDown.x, ev.rawY - touchDown.y)
359 val distanceFromTargetCenter = hypot(
/aosp12/frameworks/base/core/java/android/gesture/
H A DGestureUtils.java296 float distance = (float) Math.hypot(deltaX, deltaY); in temporalSampling()
382 sum += Math.hypot(dx, dy); in computeTotalLength()
391 return (float) Math.hypot(dx, dy) / totalLen; in computeStraightness()
397 return (float) Math.hypot(dx, dy) / totalLen; in computeStraightness()
/aosp12/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/pip/
H A DPipSurfaceTransactionHelper.java134 final float scale = (float) (Math.hypot(fromBounds.width(), fromBounds.height()) in getScaledCornerRadius()
135 / Math.hypot(toBounds.width(), toBounds.height())); in getScaledCornerRadius()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A 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()
/aosp12/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
H A DPhotoTouchListener.java103 final float v = (float) Math.hypot(dX, dY); in onFling()
208 double distance = Math.hypot(x0 - mInitialTouchX, in onTouch()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
H A DPipSurfaceTransactionHelper.java196 final float scale = (float) (Math.hypot(fromBounds.width(), fromBounds.height()) in round()
197 / Math.hypot(toBounds.width(), toBounds.height())); in round()
/aosp12/art/test/123-inline-execute2/src/
H A DMain.java65 + String.format(Locale.US, "%.12f", Math.hypot(e, e + 1.0))); in main()
105 + StrictMath.hypot(e, e + 1.0)); in main()

123456