Пример #1
0
 public int getMinB() {
   int min = Integer.MAX_VALUE;
   for (Point p : this.positions) {
     if (p.getB() < min) {
       min = p.getB();
     }
   }
   return min;
 }
Пример #2
0
 public int getMinA() {
   int min = Integer.MAX_VALUE;
   for (Point p : this.positions) {
     try {
       if (p.getA() < min) {
         min = p.getA();
       }
     } catch (Exception e) {
       System.out.println(Arrays.toString(this.positions));
     }
   }
   return min;
 }
Пример #3
0
 public Point getRepPoint() {
   return Point.getPoint(this.getMinA(), getMinB());
 }