예제 #1
0
 private DataFormat.IOutBlackBoxParam GoodCost(List <Rectangle> rect)
 {
     DataFormat.IOutBlackBoxParam cost = new DataFormat.OutBlackBoxParam(Double.MaxValue);
     foreach (var r in rect)
     {
         if (cost.Cost > r.PIR.cost.Cost)
         {
             cost = r.PIR.cost;
         }
     }
     return(cost);
 }
예제 #2
0
 private DataFormat.IOutBlackBoxParam GoodCost(List<Rectangle> rect)
 {
     DataFormat.IOutBlackBoxParam cost = new DataFormat.OutBlackBoxParam(Double.MaxValue);
     foreach (var r in rect)
         if (cost.Cost > r.PIR.cost.Cost) cost = r.PIR.cost;
     return cost;
 }
예제 #3
0
 public void SetCost(DataFormat.OutBlackBoxParam cost)
 {
     this.cost = cost;
 }
예제 #4
0
 public void CreatPoint(double x, double y, DataFormat.OutBlackBoxParam cost)
 {
     PIR.x = x; PIR.y = y; PIR.cost = cost;
 }