Below you can see the front-view size comparison of the Leica M10 and Pentax K-1. The Leica M10 is 71 mm shorter and 6 mm thinner than the Pentax K-1 but it is also 2 mm wider.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.