Remove dependencies on FloatMath

See frameworks/base commit 33253a4baa6279f81a73425b49dfb6abe5f5416e
for details.

Bug: https://code.google.com/p/android/issues/detail?id=36199
Change-Id: I928b0bee35467acb2f06f774b8d0e49fc2336795
This commit is contained in:
Neil Fuller committed 2014-10-17 16:12:18 +01:00
1 parent 3a9f3a7806
commit ac04ec9f1a
8 files changed
+15 -24

No files matched your search

+1 -2
View File
@@ -385,8 +385,7 @@ public class DeviceProfile {
}
private float dist(PointF p0, PointF p1) {
return (float) Math.sqrt((p1.x - p0.x)*(p1.x-p0.x) +
(p1.y-p0.y)*(p1.y-p0.y));
return (float) Math.hypot(p1.x - p0.x, p1.y-p0.y);
}
private float weight(PointF a, PointF b,