Snell's law
The idea has a long history. The problem had the attention of Hero of Alexandria, Ptolemy, Ibn Sahl, and Huygens. Ibn Sahl actually discovered the law of refraction. In Traité de la Lumiere, 1678, Huygens showed how Snell's law of sines could be explained by, or derived from, the wave nature of light.