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:
1 parent
3a9f3a7806
commit
ac04ec9f1a
8 files changed
+15
-24
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user