Beispiel #1
0
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 31 * hash + (int) Double.doubleToLongBits(L_A);
   hash = 31 * hash + (int) Double.doubleToLongBits(Y_b);
   hash = 31 * hash + surrounding.hashCode();
   hash = 31 * hash + Arrays.hashCode(XYZ_w);
   return hash;
 }
Beispiel #2
0
 private static double calcD(double L_A, Surrounding sur) {
   return Math.max(
       0.0,
       Math.min(1.0, sur.getF() * (1.0 - (1.0 / 3.6) * Math.pow(Math.E, (-L_A - 42.0) / 92.0))));
 }