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); }
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; }
public void SetCost(DataFormat.OutBlackBoxParam cost) { this.cost = cost; }
public void CreatPoint(double x, double y, DataFormat.OutBlackBoxParam cost) { PIR.x = x; PIR.y = y; PIR.cost = cost; }