Generalized Fermat's principle and Snell's law for cone structures and applications | Synapse