X-Git-Url: https://git.piment-noir.org/?p=Persons_Comparator.git;a=blobdiff_plain;f=src%2FEye.java;h=ed2231b7aaa81da839726fea50b760f917f178f3;hp=a165830f8a1f3cb67354d4c3a97fe48951798c90;hb=f1e9d6d2fcc7253b117278c4439b656a1e532e68;hpb=416e35f7e06f4689cccfd220bf1b4a20ffac54ec diff --git a/src/Eye.java b/src/Eye.java index a165830..ed2231b 100644 --- a/src/Eye.java +++ b/src/Eye.java @@ -62,7 +62,7 @@ public class Eye implements Comparable { double r_diff = this.getColor().getRed() - eye.getColor().getRed(); double g_diff = this.getColor().getGreen() - eye.getColor().getGreen(); double b_diff = this.getColor().getBlue() - eye.getColor().getBlue(); - // See https://en.wikipedia.org/wiki/Color_difference + //See https://en.wikipedia.org/wiki/Color_difference Double distance = Math.sqrt(2 * Math.pow(r_diff, 2) + 4 * Math.pow(g_diff, 2) + 3 * Math.pow(b_diff, 2)); return distance.intValue(); }