Skip to content

Algorithms.NodeConnections<TNode> Class

Describes the 4-way connections of a node.

C#
public class Algorithms.NodeConnections<TNode>

TNode
The type of object the node and its connections are.

Inheritance object

NodeConnections(TNode, TNode, TNode, TNode, bool, bool, bool, bool)

Section titled “NodeConnections(TNode, TNode, TNode, TNode, bool, bool, bool, bool)”

Creates a new instance of this object with the specified connections.

C#
public NodeConnections(TNode west, TNode east, TNode north, TNode south, bool isWest, bool isEast, bool isNorth, bool isSouth)

west TNode
The west connection.

east TNode
The east connection.

north TNode
The north connection.

south TNode
The south connection.

isWest bool
When true indicates the West connection is valid; otherwise false.

isEast bool
When true indicates the East connection is valid; otherwise false.

isNorth bool
When true indicates the North connection is valid; otherwise false.

isSouth bool
When true indicates the South connection is valid; otherwise false.

Creates a new instance of this object with all connections set to null.

C#
public NodeConnections()

The west or left node.

C#
public TNode? West

The east or right node.

C#
public TNode? East

The north or up node.

C#
public TNode? North

The south or down node.

C#
public TNode? South

When true indicates the West connection is valid; otherwise false.

C#
public bool HasWest

When true indicates the East connection is valid; otherwise false.

C#
public bool HasEast

When true indicates the North connection is valid; otherwise false.

C#
public bool HasNorth

When true indicates the South connection is valid; otherwise false.

C#
public bool HasSouth