Fermat’s Principle (Least Time)

Simulation Home
Lifeguard starts at A, victim at B. Running is faster than swimming → least-time path bends at the boundary (Snell’s Law).