# Find the angles between two solids

I have 2 solids (A and B) and I need to find the three angles between their x, y, and z axes. If I calculate the geometrical center of the two solids (Ax, Ay, Az and Bx, By, Bz), is it correct to calculates the angles between their axes as follow?

Thank you

$$\Delta x = Ax - Bx$$

$$\Delta y = Ay - By$$

$$\Delta z = Az - Bz$$

$$\angle x = a\tan 2(\Delta x, \sqrt{\Delta y^2 + \Delta z^2})$$

$$\angle y = a\tan 2(\Delta y, \sqrt{\Delta x^2 + \Delta z^2})$$

$$\angle z = a\tan 2(\Delta z, \sqrt{\Delta x^2 + \Delta y^2})$$