Returns Maximum_integer if unaccessibility detected
Returns -1 when break needed
Distance from current point otherwise
Warning: max length and pos are from the search start.
Returns Maximum_integer if unaccessibility detected
Returns -1 when break needed
Distance from current point otherwise
Warning: max length and pos are from the search start.