In the Figure below, the line segments $OA$ and $OB'$ make angle $\theta$ and $-\theta$ respectively with the positive x axis. Similiarly $AB$ is orthogonal to the x axis with $D$ the point of intersection and let $d$ be the distance between point $O$ and $D$.
$AB$ is then tilted about point $D$ by an unknown angle $\beta$ (in ccw direction) to form $A'B'$ as shown in the figure.
My question is given that the variables $\theta,\, d, \, y_1$ and $y_2$ are known (experimentally), how do I find the value of $\beta$?
By projecting $y_1$ and $y_2$ on the x axis and using simple algebraic and trigonometric manipulation I obtain following 2 equations for $y_1$ and $y_2$ as a function of $\beta$.
$$y_1(\beta) = \dfrac{d}{\sin(\beta) + \dfrac{\cos(\beta)}{\tan(\theta)}} \, $$ $\qquad$ and
$$y_2(\beta) = \dfrac{d}{-\sin(\beta) + \dfrac{\cos(\beta)}{\tan(\theta)}}$$