Nearest

Top  Previous  Next

This method will locate the nearest item in NL, calculated from a node. It returns the index of the item.

 

If returning -1, nothing was found.

 

Syntax: Nearest(node: integer; NL: TIntegerList): integer