Below you can see the front-view size comparison of the Fujifilm X30 and Pentax WG-3. The Pentax WG-3 is 8 mm shorter and 27 mm thinner than the Fujifilm X30 but it is also 5 mm wider.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.