コード例 #1
0
 @Override
 public boolean relaxOperatingArea(Point point, Direction direction, int miles) {
   OperatingAreaRelaxation relaxation = OperatingAreaRelaxation.getInstance();
   Polygon p = relaxation.relax(this.ploygon, direction, miles);
   if (p.contains(point)) {
     return true;
   }
   return false;
 }
コード例 #2
0
  @Override
  public boolean isCovered(Point point) {

    return ploygon.contains(point);
  }