Legendre Duality of Spherical and Gaussian Spin Glasses