Added conversion for Node -> PathNode
This commit is contained in:
parent
da9a99cf7c
commit
89d57f5147
@ -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);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user