Hamilton’s Method in Geometrical Optics