Returns the path to the node that is closest to x,y. If
there is nothing currently visible this will return
null
,
otherwise it will always return a valid path.
If you need to test if the
returned object is exactly at x, y you should get the bounds for
the returned path and test x, y against that.
Returns:
the path to the node that is closest to x, y
Parameters:
-
x - the x-coordinate
-
y - the y-coordinate