Added conversion for Node -> PathNode
This commit is contained in:
parent
da9a99cf7c
commit
89d57f5147
@ -2,7 +2,7 @@ using OSMDatastructure;
|
|||||||
|
|
||||||
namespace Pathfinding;
|
namespace Pathfinding;
|
||||||
|
|
||||||
public class PathNode : OSMDatastructure.Node
|
public class PathNode : Node
|
||||||
{
|
{
|
||||||
public PathNode? previousPathNode = null;
|
public PathNode? previousPathNode = null;
|
||||||
public double currentPathWeight = double.MaxValue;
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user