Interface INodeFinder
Stores
NodeData information and provides fast access by coordinates.
Assembly: Mars.Common.dll
Syntax
public interface INodeFinder
Methods
|
Improve this Doc
View Source
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. |
|
Improve this Doc
View Source
Get(Double, Double)
Finds a node at given position within node tolerance. If none is found there, null is returned.
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, null if not found. |
|
Improve this Doc
View Source
Nearest(Double, Double)
Finds the nearest node to given position.
Declaration
int? Nearest(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, null if not found. |
Extension Methods