Interface INodeFinder
Stores NodeData information and provides fast access by coordinates.
Namespace: Mars.Common.Collections.Graph.Helper
Assembly: Mars.Common.dll
Syntax
public interface INodeFinder
Methods
Add(Int32, Double, Double)
Creates a node at given position using feature information if possible.
Stores the node for future searching.
Declaration
void Add(int key, double x, double y)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | key | The object identifier. |
System.Double | x | Longitudinal position of node. |
System.Double | y | Latitudinal position of node. |
Get(Double, Double)
Finds a node at given position. If none is found there, a new node is created instead.
Declaration
int? Get(double x, double y)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | Longitudinal position of node. |
System.Double | y | Latitudinal position of node. |
Returns
Type | Description |
---|---|
System.Nullable<System.Int32> | The index of the found node and the node if it was created or null if it was found. |