New to Telerik UI for WinFormsStart a free 30-day trial

Represents an instance of the Node class that is used by the AStarRouter.

Definition

Namespace:Telerik.Windows.Diagrams.Core.Routing.AStar

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public class AStarNode

Inheritance: objectAStarNode

Constructors

Initializes a new instance of the AStarNode class.

C#
public AStarNode(Point point, bool isStartOrEndWall, bool isWall)
Parameters:pointPoint

The point.

isStartOrEndWallbool

The is start wall.

isWallbool

The is wall.

Properties

Gets or sets the whole path length through this point. This is the sum of G and H.

C#
public double F { get; set; }

Gets or sets the actual distance from the start to the current point in the search.

C#
public double G { get; set; }

Gets or sets the heuristic distance to the endpoint or goal. The smaller the value the closer to the goal.

C#
public double H { get; set; }

Gets or sets the is open.

C#
public bool IsOpen { get; set; }
Property Value:

The is open.

Gets or sets whether this node is over an existing connection segment.

C#
public bool IsSegmentOverlap { get; set; }

Gets or sets whether this node is a start or end wall.

C#
public bool IsStartOrEndWall { get; }
Property Value:

The is start wall.

Gets or sets whether this node is wall.

C#
public bool IsWall { get; }
Property Value:

The is wall.

Gets or sets the position.

C#
public Point Position { get; }
Property Value:

The position.