This locates the nearest node from P. Returns distance to the node too.
Syntax: NearestNode(P: TFloatPoint; var node: integer; var distance: double)
See also NearestNodeSimple