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
This commit is contained in:
Neil Fuller
2014-10-02 15:19:08 +01:00
parent bb148d92db
commit dd4697d316
5 changed files with 6 additions and 7 deletions

View File

@@ -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) {