Skip to main content
 



Latest one that popped up:

-    float circleWidth = (float) Math.sqrt(
-        canvas.getWidth() * canvas.getWidth()
-        + canvas.getHeight() * canvas.getHeight()
-    )  - innerRadius;
+    float circleWidth = (float) Math.hypot(canvas.getWidth(), canvas.getHeight()) - innerRadius;