You can find the [[../Math/Matrix]] to re align two [[Axis Aligned]] rectangles $A, B$
by finding the matrix that brings $A_{center} \to B_{center}$
>[!example]
Rectangle $A \to B$.
$\huge \begin{align}
(7,8), (-21, 8), &(-21, -16), (7, -16) \\
&\to\\
(-13, 1), (15, -1), &(15, -19), (-13, -19)
\end{align}$
$A_{center} = (-7, 4)$, $B_{center} = (1, -10)$
$T_{7,4}\cdot H_{-1, \frac{18}{24}}\cdot T_{7, 4}$ would be the matrix that would bring $A_{center}\to B_{center}$.