Today, my Physics teacher explained the cause of refraction by using the car analogy
It goes like this :
Suppose a car is moving on a concrete road and obliquely enters some mud. Now, one of the front tires will enter the mud earlier than the other and it will slow down earlier. So, this tire will now travel a less distance in the time in which the tire which has still not entered the mud will travel a larger distance. Due to this, the car will rotate with the tire that entered the mud as its center and its direction will change.
I get this. But I'm a little confused about how we can relate this to light while assuming that it is a wave.
An explanation would be appreciated...