Descartes, Newton, and Snell’s law