示例#1
0
文件: Block.java 项目: ueddieu/mmix
 public int getMinB() {
   int min = Integer.MAX_VALUE;
   for (Point p : this.positions) {
     if (p.getB() < min) {
       min = p.getB();
     }
   }
   return min;
 }
示例#2
0
文件: Block.java 项目: ueddieu/mmix
 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
文件: Block.java 项目: ueddieu/mmix
 public Point getRepPoint() {
   return Point.getPoint(this.getMinA(), getMinB());
 }