public int getMinB() { int min = Integer.MAX_VALUE; for (Point p : this.positions) { if (p.getB() < min) { min = p.getB(); } } return min; }
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; }
public Point getRepPoint() { return Point.getPoint(this.getMinA(), getMinB()); }