Searched refs:hypot (Results 1 - 25 of 53) sorted by relevance

123

/frameworks/base/core/java/android/util/
H A DFloatMath.java130 public static float hypot(float x, float y) { method in class:FloatMath
131 return (float) Math.hypot(x, y);
H A DMathUtils.java98 return (float) Math.hypot(x, y);
109 return (float) Math.hypot(a, b);
H A DSpline.java168 float h = (float) Math.hypot(a, b);
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DGestureUtils.java60 final float firstMagnitude = (float) Math.hypot(firstDeltaX, firstDeltaY);
73 final float secondMagnitude = (float) Math.hypot(secondDeltaX, secondDeltaY);
/frameworks/base/core/java/android/transition/
H A DPatternPathMotion.java120 float distance = (float) Math.hypot(dx, dy);
133 float length = (float) Math.hypot(dx, dy);
H A DCircularPropagation.java103 return Math.hypot(x, y);
H A DExplode.java153 double vectorSize = Math.hypot(xVector, yVector);
167 return Math.hypot(maxX, maxY);
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
H A DPoint.java41 return (float) Math.hypot(a.x - x, a.y - y);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DNormFilter.java56 float norm = (float) Math.hypot(xValue, yValue);
/frameworks/base/core/tests/benchmarks/src/android/util/
H A DFloatMathBenchmark.java71 f += FloatMath.hypot(100.123f, 100.123f);
/frameworks/base/graphics/java/android/graphics/
H A DPointF.java111 return (float) Math.hypot(x, y);
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/
H A DPoint.java73 return (float)Math.hypot(x, y);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
H A DFreePathInterpolator.java81 mArcLength += Math.hypot(x - prevX, y - prevY);
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
H A Dmandelbulb.rs56 return 256-4*(size2-z+4)*hypot((float)x-size2,(float)y-size2) / size2 ;
/frameworks/base/core/java/android/gesture/
H A DGestureUtils.java296 float distance = (float) Math.hypot(deltaX, deltaY);
382 sum += Math.hypot(dx, dy);
391 return (float) Math.hypot(dx, dy) / totalLen;
397 return (float) Math.hypot(dx, dy) / totalLen;
H A DGestureStroke.java72 len += Math.hypot(p.x - tmpPoints[(i - 1) * 2], p.y - tmpPoints[(i -1) * 2 + 1]);
/frameworks/support/wear/src/main/java/androidx/wear/widget/
H A DScrollManager.java133 float distFromCenter = (float) Math.hypot(deltaXFromCenter, deltaYFromCenter);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationGuts.java267 float r = (float) Math.hypot(horz, vert);
302 float r = (float) Math.hypot(horz, vert);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DKeyguardAffordanceHelper.java159 float distance = (float) Math.hypot(xDist, yDist);
212 double distance = Math.hypot(x - iconX, y - iconY);
492 float bLen = (float) Math.hypot(bX, bY);
/frameworks/base/core/java/android/widget/
H A DScroller.java427 float hyp = (float) Math.hypot(dx, dy);
444 float velocity = (float) Math.hypot(velocityX, velocityY);
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
H A DMainActivity.java123 float zoom = (float) Math.hypot(x1 - x2, y1 - y2);
140 mDistDown = (float) Math.hypot(x1 - x2, y1 - y2);
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
H A DMainActivity.java123 float zoom = (float) Math.hypot(x1 - x2, y1 - y2);
140 mDistDown = (float) Math.hypot(x1 - x2, y1 - y2);
H A Dhealing.rs135 int steps = (int)hypot((float)width, (float)height);
/frameworks/base/core/java/android/view/
H A DScaleGestureDetector.java333 span = (float) Math.hypot(spanX, spanY);
/frameworks/base/core/java/com/android/internal/app/
H A DPlatLogoActivity.java193 bg.setRadius((float) Math.hypot(pc0.x - pc1.x, pc0.y - pc1.y) / 2f);

Completed in 311 milliseconds

123