am f1340f18: Merge "Remove dependencies on FloatMath"
* commit 'f1340f1810464ec656262141326c87b3896a3550': Remove dependencies on FloatMath
This commit is contained in:
commit
23582d7da0
8 files changed
+15
-24
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user