Home
last modified time | relevance | path

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

1234

/frameworks/base/core/java/android/util/
DFloatMath.java130 public static float hypot(float x, float y) { in hypot() method in FloatMath
131 return (float) Math.hypot(x, y); in hypot()
DMathUtils.java98 return (float) Math.hypot(x, y); in dist()
109 return (float) Math.hypot(a, b); in mag()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DGestureUtils.java60 final float firstMagnitude = (float) Math.hypot(firstDeltaX, firstDeltaY); in isDraggingGesture()
73 final float secondMagnitude = (float) Math.hypot(secondDeltaX, secondDeltaY); in isDraggingGesture()
/frameworks/base/core/java/android/transition/
DPatternPathMotion.java120 float distance = (float) Math.hypot(dx, dy); in setPatternPath()
133 float length = (float) Math.hypot(dx, dy); in getPath()
DExplode.java153 double vectorSize = Math.hypot(xVector, yVector); in calculateOut()
167 return Math.hypot(maxX, maxY); in calculateMaxDistance()
DCircularPropagation.java103 return Math.hypot(x, y); in distance()
/frameworks/base/core/java/android/gesture/
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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DPoint.java41 return (float) Math.hypot(a.x - x, a.y - y); in dist()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DNormFilter.java56 float norm = (float) Math.hypot(xValue, yValue); in onProcess()
/frameworks/base/core/tests/benchmarks/src/android/util/
DFloatMathBenchmark.java71 f += FloatMath.hypot(100.123f, 100.123f); in timeFloatMathHypot()
/frameworks/base/graphics/java/android/graphics/
DPointF.java111 return (float) Math.hypot(x, y); in length()
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/
DPoint.java73 return (float)Math.hypot(x, y); in length()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/
DLoaderDicom.java478 float sz = (float) Math.hypot(dzx,Math.hypot(dzy,dzz)); in buildRSVolume()
602 float sz = (float) Math.hypot(dzx,Math.hypot(dzy,dzz)); in buildRSVolume2()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Dmandelbulb.rs56 return 256-4*(size2-z+4)*hypot((float)x-size2,(float)y-size2) / size2 ;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationGuts.java267 float r = (float) Math.hypot(horz, vert); in animateOpen()
302 float r = (float) Math.hypot(horz, vert); in animateClose()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
DFreePathInterpolator.java81 mArcLength += Math.hypot(x - prevX, y - prevY); in initPath()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardAffordanceHelper.java159 float distance = (float) Math.hypot(xDist, yDist); in onTouchEvent()
212 double distance = Math.hypot(x - iconX, y - iconY); in isOnIcon()
492 float bLen = (float) Math.hypot(bX, bY); in getCurrentVelocity()
/frameworks/base/core/java/android/widget/
DScroller.java427 float hyp = (float) Math.hypot(dx, dy); in fling()
444 float velocity = (float) Math.hypot(velocityX, velocityY); in fling()
/frameworks/support/wear/src/main/java/androidx/wear/widget/
DScrollManager.java133 float distFromCenter = (float) Math.hypot(deltaXFromCenter, deltaYFromCenter); in onTouchEvent()
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
DMainActivity.java123 float zoom = (float) Math.hypot(x1 - x2, y1 - y2); in onCreate()
140 mDistDown = (float) Math.hypot(x1 - x2, y1 - y2); in onCreate()
Dhealing.rs135 int steps = (int)hypot((float)width, (float)height);
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
DMainActivity.java123 float zoom = (float) Math.hypot(x1 - x2, y1 - y2); in onCreate()
140 mDistDown = (float) Math.hypot(x1 - x2, y1 - y2); in onCreate()
/frameworks/layoutlib/bridge/src/android/graphics/
DRadialGradient_Delegate.java191 float distance = (float) Math.hypot(_x, _y); in getRaster()
/frameworks/compile/slang/tests/P_math_fp/
Dmath_fp.rs109 TEST_FUNC_2(hypot);
/frameworks/base/core/java/com/android/internal/policy/
DPipSnapAlgorithm.java181 final double distanceVert = Math.hypot(vertPoint.x - x, vertPoint.y - y); in getEdgeIntersect()
182 final double distanceHoriz = Math.hypot(horizPoint.x - x, horizPoint.y - y); in getEdgeIntersect()

1234