0

I got to know how to modify formula for radius of circle formed after intersection of two spheres when centres of both spheres where at origin or at x axis to centres at any arbitary positions $(x_1,y_1,z_1)$ and $(x_2,y_2,z_2)$ from previous question.

sphere intersection

I was able to understand these: $$h^2 = \frac{4 d^ 2 r1^2 - (d^2 - r2^2 + r1^2)^2}{ 4 d^2}$$

where

$$d^2=(x2-x1)^2+(y2-y1)^2+(z2-z1)^2$$

The equation of circle after intersection of spheres with centres at $(0,0,0)$ and $(d,0,0)$ is $$x=\frac{d^2-r1^2+r2^2}{2d}$$ and parallel to $yz$ plane: $$y^2+z^2=\frac{4 d^2 r2^2-(d^2-r1^2+r2^2)^2}{4 d^2}$$

How could i modify this equation when centres of spheres are at $(x_1,y_1,z_1)$ and $(x_2,y_2,z_2)$.?

wrangler
  • 123
  • The general equations can be obtained by rotating/translating the coordinates. The rotation matrix is computed from the vector $P_1P_2$ and an arbitrary one, using the Gram-Schmidt orthogonalization process. But I bet you will be disappointed as you will end-up with the implicit equation of a plane and that of a sphere. What is your purpose ? –  Oct 30 '15 at 09:02
  • @YvesDaoust i have to code in c++ given two arbitary centres of spheres and their radii print a general equation of thier intersection. since my core subjects are progamming related i have little knowledge of mathmatics. i will be highly grateful if you will help me. – wrangler Oct 30 '15 at 09:26
  • Do you have to format the equations ?? This is an unusual project. –  Oct 30 '15 at 10:11
  • @YvesDaoust No format, any format will help.....if you have something that will be of any help please provide. – wrangler Oct 30 '15 at 10:22
  • Start by printing the reduced equations. –  Oct 30 '15 at 10:31
  • @YvesDaoust what is a reduced equation? and how can we calculate? – wrangler Oct 30 '15 at 11:01
  • Start by printing any equation. –  Oct 30 '15 at 11:17
  • @YvesDaoust Okay i have taken out centre coordinates of the circle ,radius of the circle and line equation (vector) of the line connecting the two centres. With these can i calculate the equation of circle.?? – wrangler Oct 30 '15 at 12:00

0 Answers0