Consider two convex quadrilaterals sharing one edge with lines meeting at the endpoints of this edge being collinear, so that the seven edges form another, larger convex quadrilateral (see picture).
With all lengths but no angles given, these quadrilaterals are still perfectly defined.
Now I want to calculate the angles for given lengths $a$ to $g$ (any angle, from there I can calculate the others)

If you can help me, it's greatly appreciated! It's for a mechanism I want to build :)




Hint: Extend the side containing $e,d$ and the side containing $a, b$. Mark their intersection. From the law of cosines
$ x^2 + y^2 - 2 K x y = c^2 $
$ (x+d)^2 + (y + b)^2 - 2 K (x + d)(y + b) = g^2 $
$ (x + d + e)^2 + (y + a + b)^2 - 2 K (x + d + e)(y + a + b) = f^2 $
where $K = \cos(\theta) $
These equations can be solved numerically quite easily. For example, using the well-known multi-variate Newton-Raphson method, which is well-suited to this particular problem, because the Jacobian is straight forward to compute.
Once $x, y, \cos(\theta)$ are available, the result of the angles in the composite figure can be computed using a combination of the law of sines and the law of cosines.