am f1340f18: Merge "Remove dependencies on FloatMath"

* commit 'f1340f1810464ec656262141326c87b3896a3550':
  Remove dependencies on FloatMath
This commit is contained in:
Neil Fuller authored and Android Git Automerger committed 2014-10-23 22:30:10 +00:00
commit 23582d7da0
8 files changed
+15 -24

No files matched your search

+1 -2
View File
@@ -450,8 +450,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,