Algorithms.NodeConnections<TNode> Class
Definition
Section titled “Definition”Describes the 4-way connections of a node.
public class Algorithms.NodeConnections<TNode>Type Parameters
Section titled “Type Parameters”TNode
The type of object the node and its connections are.
Inheritance object
Constructors
Section titled “Constructors”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.
public NodeConnections(TNode west, TNode east, TNode north, TNode south, bool isWest, bool isEast, bool isNorth, bool isSouth)Parameters
Section titled “Parameters”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.
NodeConnections()
Section titled “NodeConnections()”Creates a new instance of this object with all connections set to null.
public NodeConnections()Fields
Section titled “Fields”The west or left node.
public TNode? WestThe east or right node.
public TNode? EastThe north or up node.
public TNode? NorthThe south or down node.
public TNode? SouthHasWest
Section titled “HasWest”When true indicates the West connection is valid; otherwise false.
public bool HasWestHasEast
Section titled “HasEast”When true indicates the East connection is valid; otherwise false.
public bool HasEastHasNorth
Section titled “HasNorth”When true indicates the North connection is valid; otherwise false.
public bool HasNorthHasSouth
Section titled “HasSouth”When true indicates the South connection is valid; otherwise false.
public bool HasSouth