From d82efdf973263915782a8b73c6098165a50f6062 Mon Sep 17 00:00:00 2001 From: glax Date: Thu, 25 Jul 2024 02:22:41 +0200 Subject: [PATCH] Renamed SpeedHelper.GetMaxSpeed to GetTheoreticalMaxSpeed for distinction with Way.GetMaxSpeed --- astar/Astar.cs | 2 +- astar/PathingHelper/SpeedHelper.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/astar/Astar.cs b/astar/Astar.cs index 739e9fe..d1cec7f 100644 --- a/astar/Astar.cs +++ b/astar/Astar.cs @@ -30,7 +30,7 @@ namespace astar endNode.Value.Metric = 0f; double totalDistance = NodeUtils.DistanceBetween(startNode.Value, endNode.Value); - PriorityHelper priorityHelper = new(totalDistance, SpeedHelper.GetMaxSpeed(car)); + PriorityHelper priorityHelper = new(totalDistance, SpeedHelper.GetTheoreticalMaxSpeed(car)); logger?.Log(LogLevel.Information, "From {0:00.00000}#{1:000.00000} to {2:00.00000}#{3:000.00000} Great-Circle {4:00000.00}km", diff --git a/astar/PathingHelper/SpeedHelper.cs b/astar/PathingHelper/SpeedHelper.cs index 761f0d5..b619837 100644 --- a/astar/PathingHelper/SpeedHelper.cs +++ b/astar/PathingHelper/SpeedHelper.cs @@ -13,7 +13,7 @@ internal static class SpeedHelper return car ? SpeedCar[highwayType] : SpeedPedestrian[highwayType]; } - public static byte GetMaxSpeed(bool car = true) + public static byte GetTheoreticalMaxSpeed(bool car = true) { return car ? SpeedCar.MaxBy(s => s.Value).Value : SpeedPedestrian.MaxBy(s => s.Value).Value; }