We are given two non-intersecting circles centered at $O_{1}$ and $O_{2}$. For simplicity sake, let $O_{1} = (0,0)$ and $r_{1} = r_{2} = 10$. Let $t$ be the distance between the two origins minus $2r$. In the picture, I call the distance between origins $deltaOrig$.
The circles do not overlap in either the x or y-dimensions.
In the attached image, $O_{2} = (27,23)$. Thus, as shown in the picture, $$t_{x} = (27-0-(2*10)) = 7 \\t_{y} = (23-0-(2*10) = 3$$.
To minimize the infinity norm or Chebyshev distance between the two circles, I need to find the point on each circle such that the quadrilateral between those two points is square with side length k.
How do I know this? I have this formulated as a QCP or quadratically constrained program optimization problem where I minimize the distance of the arc connecting the circles subject to each endpoint lying on a circle. Using this, I also find that the coordinates that minimize this distance form the angle $\theta$ as shown in the picture (pardon my imperfect drawing). For example in this instance, I find that $k = 11$ and the minimizing coordinates are $$(8,6)\\(19,17)$$.
Question: how do I find the geometric solution to this problem (what is $\theta$ as $O_2$ changes? I suspect there's a simple geometric argument but I am stumped except when the circles are distance enough that the square becomes a rectangle.
Here are some results from my CPLEX solution where $O_1$ remains $(0,0)$ and $r=10$:
$O_2 = (50,30)$ then $k=30.0$ and $\theta = 0^{\circ}$
$O_2 = (49,30)$ then $k=29.024$ and $\theta = 2.798^{\circ}$
...
$O_2 = (30,30)$ then $k=15.857$ and $\theta = 45^{\circ}$
$O_2 = (29,30)$ then $k=15.367$ and $\theta = 47.026^{\circ}$
...
$O_2 = (11,30)$ then $k=10.024$ and $\theta = 87.202^{\circ}$
$O_2 = (10,30)$ then $k=10.0$ and $\theta = 90^{\circ}$







Calling
$$ \cases{ p_1 = (0,0)\\ p_2 = (27,23)\\ r_1 = 10\\ r_2 = 10\\ p=(x_1,y_1)\\ q=(x_2,y_2)\\ p_c=(y_1,x_2) } $$
we have the conditions
$$ \mathcal{R(x_1,y_1,x_2,y_2)}=\cases{ \|p-p_1\|^2=r_1^2\\ \|q-p_2\|^2=r_2^2\\ (p-p_c)\cdot(q-p_c) = 0\\ \|p-p_c\|^2=\|q-p_c\|^2 } $$
so the problem can be enunciated as
$$ \min_{x_1,x_2,y_1,y_2}\left(\|p-p_c\|^2+\|q-p_c\|^2\right),\ \ \text{s. t.}\ \ \mathcal{R}(x_1,y_1,x_2,y_2) $$
In our case we have
$$ \{ x_1 = 8, y_1 = 6, x_2 = 19, y_2 = 17 \} $$