Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6113e1d2 authored by James O'Leary's avatar James O'Leary Committed by Automerger Merge Worker
Browse files

Merge "Don't use pow for distance calculation" into sc-dev am: 3d121b71

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14328435

Change-Id: Ic9a03d7df33f9cc82d900a3b8cc4066201129f12
parents 3e1c7a65 3d121b71
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -62,6 +62,6 @@ public class LABCentroid implements CentroidProvider {
        double dL = a[0] - b[0];
        double dA = a[1] - b[1];
        double dB = a[2] - b[2];
        return (float) (Math.pow(dL, 2) + Math.pow(dA, 2) + Math.pow(dB, 2));
        return (float) (dL * dL + dA * dA + dB * dB);
    }
}