26 lines
676 B
C#
26 lines
676 B
C#
namespace Graph
|
|
{
|
|
public class Node
|
|
{
|
|
public float lat { get; }
|
|
public float lon { get; }
|
|
public List<Edge> edges { get; }
|
|
|
|
public Node previousNode { get; set; }
|
|
public double goalDistance { get; set; }
|
|
|
|
public double pathLength { get; set; }
|
|
|
|
public Node(float lat, float lon)
|
|
{
|
|
this.lat = lat;
|
|
this.lon = lon;
|
|
this.edges = new List<Edge>();
|
|
this.previousNode = nullnode;
|
|
this.goalDistance = double.MaxValue;
|
|
this.pathLength = double.MaxValue;
|
|
}
|
|
public static Node nullnode = new(float.NaN, float.NaN);
|
|
}
|
|
}
|