Added conversion for Node -> PathNode

This commit is contained in:
C9Glax 2023-02-05 20:44:57 +01:00
parent da9a99cf7c
commit 89d57f5147

View File

@ -2,7 +2,7 @@ using OSMDatastructure;
namespace Pathfinding;
public class PathNode : OSMDatastructure.Node
public class PathNode : Node
{
public PathNode? previousPathNode = null;
public double currentPathWeight = double.MaxValue;
@ -14,4 +14,9 @@ public class PathNode : OSMDatastructure.Node
}
public static PathNode FromNode(Node node)
{
return new PathNode(node.lat, node.lon);
}
}