The Hamilton optico-mechanical analogy is closely related to Fermat's principle and thus to the Huygens–Fresnel principle. Fermat's principle states that the rays between wavefronts will take the path least time; the concept of successive wavefronts derives from Huygens principle.