コード例 #1
0
 public static double TimeCost(Road road) => DistanceCost(road) * 3.6 / Math.Min(road.MaxSpeed, HeuristicSpeed);
コード例 #2
0
 public static double TimePriorityCost(Road road) => TimeCost(road) * Math.Max(HuristicPriority, road.Priority);
コード例 #3
0
 public static double DistanceCost(Road road) => road.Length;