Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
In this configuration as follows, we have a nice formula:
$$\cos(\varphi)=\frac{OF.OE+OB.OC}{OF.OB+OE.OC}$$
Is the formula known? and can we generalized for higher dimensions?