I have a sphere centered in front of my camera with a known radius and distance from the camera. How can I adjust the camera's field of view (FOV) to exactly fit the the camera to the sphere within an arbitrary viewport size?
Image of the angle I'm looking for
This answer is similar but I want to adjust the FOV instead of the camera's distance