Function version for computing the visibility from the starting point