I have three vectors in $e_i\in\mathbb{R}^3$ that form a triangle. Let us consider now the linear equation system $Ax=b$ with $$ A_{i,j} = \langle e_i, e_j\rangle^2,\\ b_i = \langle e_i, e_i\rangle. $$ I can solve these problems numerically, but somehow I feel I'm missing out. Perhaps the solution can even be constructed explicitly from $e_i$?
Any ideas?
Let's first assume that the triangle is in the $z=0$-plane. After some computation SymPy spits out
as a solution (where
(a0, a1),(b0, b1),(c0, c1)are the edge coordinates). Clearly the numerator is the dot-product of the two "other" edges; the denominator of the first component equals(a0*b1 - a1*b0) * (a0*c1 - a1*c0). Together, this can be written as $$ x_1 = \frac{\langle e_2, e_3\rangle}{\langle e_1\times e_2, e_1\times e_3\rangle} $$ for the solution in the first component. (The other components likewise.)The result holds true if the triangle is rotated in space since $$ \langle R a, R b\rangle = \langle a, b\rangle \text{ and}\\ (R a)\times (R b) = R(a\times b) $$ for any two vectors $a, b$ and any rotation matrix $R$.