I have a frustrumfrustum (truncated pyramid defined by six planes) and I need to compute a bounding sphere for this frustrumfrustum that's as small as possible.
I can choose the centre of the sphere to be right in the centre of the frustrumfrustum and the radius to be the distance to one of the "far" corners (the base of the pyramid), but that usually leaves quite a lot of slack around the narrow end of the frustrumfrustum. There must be a better way!
This seems like simple geometry, but I can't seem to figure it out. Any ideas?