Light follows the path of least time.