As I work on connecting two rectangular objects together, both with one corner cut off, they essentially transform into trapezoids.
One of the objects undergoes a rotation by a user-provided degree value. I have successfully determined the angle that the second object must be rotated in order to align with the cut side of the main object.
However, a gap persists between the two objects. To address this issue, I believe it is necessary to calculate the bounding box to determine the necessary adjustments in the x, y, or z directions.
My challenge now lies in figuring out how to calculate the bounding box of this trapezoid. Despite my efforts to search online, I have yet to find a solution that suits my specific requirements.
Given the dimensions of the trapezoids and the rotation angle, I am keen on finding a resolution. The following image provides further clarity on the scenario: