3D viewer: calculate camera distance for XY, XZ, ZY and ZX based on FOV

Using the opening angle of the camera to figure out how far away one has to go
with the camera to just see everything of the requested side of the bounding
box, makes it easier to change camera properties (like focal length).