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

Commit 3d121b71 authored by James O'Leary's avatar James O'Leary Committed by Android (Google) Code Review
Browse files

Merge "Don't use pow for distance calculation" into sc-dev

parents ce5f5faa fada9e85
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);
    }
}