Can I obtain $z$ value of circumference center given two points?

69 Views Asked by At

Given two points of a circumference in $\mathbb{R}^3$ space $P_1 = (x_1,y_1,z_1)$ and $P_2 = (x_2,y_2,z_2)$, and two coordinates of its center $x_c$, $y_c$, is it possible to obtain the missing $z_c$?

1

There are 1 best solutions below

4
On BEST ANSWER

Note that $$(x_1-x_c)^2+(y_1-y_c)^2+(z_1-z_c)^2=(x_2-x_c)^2+(y_2-y_c)^2+(z_2-z_c)^2.$$ Expand, simplify and find $z_c$, given that $z_1\not=z_2$, \begin{align}z_c&=\frac{(x_1-x_c)^2-(x_2-x_c)^2+(y_1-y_c)^2-(y_2-y_c)^2+z_1^2-z_2^2}{2(z_1-z_2)}\\ &=\frac{(x_1-x_2)(\frac{x_1+x_2}{2}-x_c)+(y_1-y_2)(\frac{y_1+y_2}{2}-y_c)+\frac{z_1+z_2}{2}}{z_1-z_2}. \end{align} When $z_1=z_2$ if
$$(x_1-x_c)^2+(y_1-y_c)^2=(x_2-x_c)^2+(y_2-y_c)^2$$ then any $z_c$ is fine, otherwise the problem of finding $z_c$ has no solution.