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