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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user