If person wants to derive the intersection curve of the rotated cylinder with offset to ellipsoid $x^2/a^2 + y^2/b^2 + z^2/c^2 = 1$.
The equations of rotated cylinder around $y$ with angle $\phi$ plus offset $x0$ as follows.
$x=r*\cos(\theta) + x0$
$y=r*\sin(\theta)$
$z=z$
$x'=x*\cos(\phi)+z*\sin(\phi)$
$y'=y$
$z'=z*\cos(\phi)-x*\sin(\phi)$
Where $\phi$ is angle of the cylinder rotated around $y$, and $x0$ is offset in x axis.
The ellipsoid
$$ x^2/a^2 + y^2/b^2 + z^2/c^2 = 1 $$
How to derive the parametric equations of the intersection curve.
Try to derive them as follows, please correct if anything wrong:
cylinder offset $x0$ without rotation:
$x=r*\cos(\theta) + x0$
$y=r*\sin(\theta)$
$z=z$
per $$ x^2/a^2 + y^2/b^2 + z^2/c^2 = 1 $$ To ellipsoid $ a=b$ we have:
$z = c/a*sqrt[a^2-(r^2+2*r*x0*cos(\theta)+x0^2)]$
After it is rotated around $y$ axis with $\phi$:
$x'=x*\cos(\phi)+z*\sin(\phi)$
$y'=y$
$z'=z*\cos(\phi)-x*\sin(\phi)$
Per $$ x'^2/a^2 + y'^2/b^2 + z'^2/c^2 = 1 $$ we have:
$z' = c/a*sqrt[a^2-(x'^2+y'^2)]$
So, the curve of intersection ($x', y', z'$) shall be the function/parametric of $\phi$ and $\theta$.
I am confused by these two (2) sets of equations, and do not know the physic meaning of them.
$z=z$
$z = c/a*sqrt[a^2-(r^2+2*r*x0*cos(\theta)+x0^2)]$
$z'=z*\cos(\phi)-x*\sin(\phi)$
$z' = c/a*sqrt[a^2-(x'^2+y'^2)]$