AStar/Graph/Node.cs

26 lines
681 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 Node(float.NaN, float.NaN);
}
}