How can I emphasize the counter clockwise trajectory on ellipse ecc2768 and the clockwise trajectory on ellipse ecc6789?
Is there a command that will follow the ellipses from P1 to P2?
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{intersections, calc, arrows, decorations.markings, backgrounds}
\tikzset{
invclip/.style={
clip,
insert path={
(-16383.99999pt,-16383.99999pt) rectangle
(16383.99999pt,16383.99999pt)
}
}
}
\begin{document}
\begin{tikzpicture}[scale = 1.75,
every label/.append style = {font = \small},
dot/.style = {outer sep = +0pt, inner sep = +0pt,
shape = circle, draw = black, label = {#1}},
dot/.default =,
small dot/.style = {minimum size = 2.5pt, dot = {#1}},
small dot/.default =,
big dot/.style = {minimum size = 5pt, dot = {#1}},
big dot/.default =,
line join = round, line cap = round, >=triangle 45
]
\pgfmathsetmacro{\e}{0.2768}
\pgfmathsetmacro{\etilde}{0.6789}
\pgfmathsetmacro{\a}{1.36}
\pgfmathsetmacro{\b}{\a * sqrt(1 - \e^2)}
\pgfmathsetmacro{\btilde}{\a * sqrt(1 - (\etilde)^2)}
\pgfmathsetmacro{\c}{sqrt(\a^2 - \b^2)}
\pgfmathsetmacro{\ctilde}{sqrt(\a^2 - (\btilde)^2)}
\pgfmathsetmacro{\angle}{88.23}
\node[scale = .75, fill = orange, big dot = {below: \(F\)}] (F)
at (0, 0) {};
\draw[red, name path = r2] (0, 0) circle (1.523679cm);
\draw[blue, name path = r1] (0, 0) circle (1cm);
\begin{pgfinterruptboundingbox}
\begin{pgfonlayer}{background}
\begin{scope}[decoration = {markings,
mark = at position 0.7 with {\arrow{<}}
}]
\path[invclip] (0, 0) -- ($(0,0)!100cm!(P1)$) -- (0cm, 100cm) --
($(0,0)!100cm!(P2)$) -- (0, 0);
\draw[name path global = ecc2768, postaction = decorate] (-\c, 0)
ellipse [x radius = \a cm, y radius = \b cm];
\end{scope}
\end{pgfonlayer}
\end{pgfinterruptboundingbox}
\draw[name intersections = {of = ecc2768 and r1}] (F) -- (intersection-1)
coordinate (P1) node[fill, big dot = {right: \(P_1\)}, minimum size = 3pt]
{};
\draw[name intersections = {of = ecc2768 and r2}] (F) -- (intersection-1)
coordinate (P2) node[fill, big dot = {left, above = 2pt: \(P_2\)},
minimum size = 3pt] {};
\path [name path global = ecc6789unrotated] (\ctilde, 0) ellipse
(\a cm and \btilde cm);
\draw [name intersections = {of = r1 and ecc6789unrotated}]
(intersection-2)
let
\p0 = (F),
\p1 = (P1),
\p2 = (intersection-2),
\n1 = {atan2(\x1 - \x0, \y1 - \y0)},
\n2 = {atan2(\x2 - \x0, \y2 - \y0)},
\n3 = {\n1 - \n2}
in
\pgfextra{\xdef\myangle{\n3}}
[rotate = \n3, name path global = ecc6789rotated] (\ctilde, 0) ellipse
(\a cm and \btilde cm);
\begin{pgfinterruptboundingbox}
\begin{pgfonlayer}{background}
\path[clip] (0, 0) -- ($(0,0)!100cm!(P1)$) -- (0cm, 100cm) --
($(0,0)!100cm!(P2)$) -- (0, 0);
\draw [dashed, cyan] (-\c, 0) ellipse [x radius = \a cm,
y radius = \b cm];
\end{pgfonlayer}
\end{pgfinterruptboundingbox}
\end{tikzpicture}
\end{document}
This code with the invclip is causing the following errors and no pdf output.
ERROR: Dimension too large.
--- TeX said --- <recently read>
\pgf@x l.2729 \path[invclip] ( 0, 0) -- ($(0,0)!100cm!(P1)$) -- (0cm, 100c...
--- HELP --- From the .log file...
I can't work with sizes bigger than about 19 feet. Continue and I'll use the largest value I can.



P1andP2. In general, you should be able say\draw (P1) arc [x radius=<xr>, y radius=<yr>, start angle=<ang1>, end angle=<ang2>];where<xr>and<yr>are the radii from the ellipse and<ang1>and<ang2>are the angles from(P1)-(M)and(P2)-(M)where(M)is the center point of the ellipse. – Qrrbrbirlbel Jun 18 '13 at 18:23P1andP2? – dustin Jun 18 '13 at 18:25