diff options
Diffstat (limited to 'samples/ControllerSample/src/com/example/controllersample')
| -rw-r--r-- | samples/ControllerSample/src/com/example/controllersample/GameView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/ControllerSample/src/com/example/controllersample/GameView.java b/samples/ControllerSample/src/com/example/controllersample/GameView.java index 6481a2a39..1f5474eba 100644 --- a/samples/ControllerSample/src/com/example/controllersample/GameView.java +++ b/samples/ControllerSample/src/com/example/controllersample/GameView.java @@ -448,7 +448,7 @@ public class GameView extends View implements InputDeviceListener { } private static float pythag(float x, float y) { - return (float) Math.sqrt(x * x + y * y); + return (float) Math.hypot(x, y); } private static int blend(float alpha, int from, int to) { |
