In classical mechanics kinetic part of Hamiltonian is the Legendre transform of kinetic part of Lagrangian.
On the other hand kinetic part of Lagrangian is a metric on the configuration space. At first I though kinetic energy in Hamiltonian setting would be an inverse metric tensor.
However it's not true. In 1D:
$$T_L(\dot x, \dot x) = \frac{1}{2} m \dot x^2$$
$$T_H(p_x, p_x) = \frac{1}{2m} p_x^2$$
where as the inverse of $T_L$ would be
$$T_L^{-1}(p_x, p_x) = \frac{2}{m} p_x^2$$
Is in this case inverse metric tensor related to Legendre transform at all? Can Legendre transform be expressed in coordinate independent way in the case above?