How to position and rotate an object so that it fits a box on my camera view?

See this thread, and this comment, for how to calculate distance from camera to fit an object in the camera viewport:

1 Like