I was taught that light tends to take the 'fastest' route. However, this made me wonder about the following scenario:
Suppose the start and end point (source and observer) are at the edge of a large cube of one medium,inside it but very close to the edge.
Surrounding the cube is a material through which light can travel much faster.
What would the path look like, would the light go out of the cube and back in again? Would it curve or just have straight turns??
Sketch where the light moves from a-b, in slow material s, close to fast material f, we may assume a and b are quite far from each other:
asssssssssssssssssb
sssssssssssssssssss
fffffffffffffffffff
fffffffffffffffffff
In the real world, the analogy could be seen as: you are in the water close to the coastline, the fastest way here would definitely to leave the water and hop back in near the end, but I am not sure if the analogy makes sense and if light can even do that.