Everybody says that the distance ,between the two axis, used in the formula, is perpendicular. But in the proof it was a hypotenuse. It was not perpendicular.
The original axes and the transformed axes are parallel to one another. The theorem covers a displacement not only in the x direction, but the y direction as well. I don't see what your question is about.