Jubobs generated this code from Drawing a hyperbolic trajectory.
If we draw a horizontal line that intersects the hyperbola (I really dont want to add this to the picture), we would have some angle.
I want to make this angle 90. How can we do this? I know we could use rotate around but what would we rotate around to keep the same orientation of the trajectory? (0,0) is not the point and how much would we need to rotate it?
Additionally, the trajectory has to be offset 16193.6km from the center of the earth. So if we want the trajectory to pass by Earth at Periapsis with 6878 km, we need to have the a ratio offset of 2.3544.
Is there a cleaner method?
\usepackage{tikz}
\begin{document}
\begin{center}
\begin{tikzpicture}[scale=2]
\pgfmathsetmacro{\e}{1.44022} % eccentricity of the hyperbola
\pgfmathsetmacro{\a}{1}
\pgfmathsetmacro{\b}{\a*sqrt((\e)^2 - 1)}
\pgfmathsetmacro{\c}{sqrt((\a)^2+(\b)^2} % distance from centre to focus
\pgfmathsetmacro{\Earthradius}{0.1} % Earth radius
\pgfmathsetmacro{\UFOradius}{.03}
\pgfmathsetmacro{\thetamax}{1.2}
\draw plot[domain = -\thetamax:\thetamax] ({\a*cosh(\x)}, {\b*sinh(\x)});
\path (\c,0) node(a) {\includegraphics[width=.5cm]{earth.png}};
\pgfmathtruncatemacro{\N}{8} % an even number is best here
\pgfmathsetmacro{\thetaoffset}{.05*\thetamax}
\foreach \k in {0,1,...,\N}{
\pgfmathsetmacro{\theta}{(\thetamax-\thetaoffset)*(2*\k/\N-1)}
\shade[top color=black,bottom color=gray]
({\a*cosh(\theta)}, {\b*sinh(\theta)}) circle (\UFOradius);
}
\end{tikzpicture}
\end{center}
\end{document}
Here is a crude drawing:

