Below you can see the front-view size comparison of the Olympus XZ-10 and Pentax WG-10. The Pentax WG-10 is 2 mm shorter and 5 mm thinner than the Olympus XZ-10 but it is also 14 mm wider.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.