shortestPathIntersectsObstacle