diff options
| author | Neil Fuller <nfuller@google.com> | 2014-10-02 15:19:08 +0100 |
|---|---|---|
| committer | Neil Fuller <nfuller@google.com> | 2014-10-02 15:19:08 +0100 |
| commit | dd4697d3166a8a3d89afd9012b44c2396bd9552c (patch) | |
| tree | 25c74fdeda583724b0742449d2694f5920df5ae8 /samples/ControllerSample/src/com/example | |
| parent | bb148d92dbde9c0fb47d6e06be38a155bd59f9f0 (diff) | |
| download | android_development-dd4697d3166a8a3d89afd9012b44c2396bd9552c.tar.gz android_development-dd4697d3166a8a3d89afd9012b44c2396bd9552c.tar.bz2 android_development-dd4697d3166a8a3d89afd9012b44c2396bd9552c.zip | |
Remove dependencies on FloatMath
See frameworks/base commit 33253a4baa6279f81a73425b49dfb6abe5f5416e
for details.
Bug: https://code.google.com/p/android/issues/detail?id=36199
Change-Id: I01126788f34b9a464b873bc2fff03acedc43bb52
Diffstat (limited to 'samples/ControllerSample/src/com/example')
| -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) { |
