public double GetDistanceTo_DepotPosition(Depot _Depot) { double dX = this.Pos.X_Pos - _Depot.Pos.X_Pos; double dY = this.Pos.Y_Pos - _Depot.Pos.Y_Pos; double multi = dX * dX + dY * dY; double Dist = Math.Sqrt(multi); return(Dist); }
public static void Initialising_Depot() { List <int> Tools = new List <int>() { }; List <int> Tools_Exchange = new List <int>() { }; Position P = new Position() { X_Pos = 40, Y_Pos = 50 }; _Depot = new Depot() { List_Tool_Exchange = Tools_Exchange, List_Tools = Tools, Pos = P }; }