In this MWE there is tangent with help of the answer of @Jake in How do I make tangents to ellipses and lines parallel to these?
But I do not succeed in using this point that I got by tangent=0.35
later on in order to connect it with F1 and F2. In other words: The blue and the black point on the ellipsis line should be the same but how can I get it exact without guessing the angle of the point where I've drawn the tangent?
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{calc,decorations.markings,intersections}
\usepackage{pgfplots}
\pgfplotsset{compat=1.15}
\begin{document}
\begin{tikzpicture}[
dot/.style={draw,fill,circle,inner sep=1pt},
tangent/.style={
decoration={
markings,% switch on markings
mark=
at position #1
with
{
\coordinate (tangent point-\pgfkeysvalueof{/pgf/decoration/mark info/sequence number}) at (0pt,0pt);
\coordinate (tangent unit vector-\pgfkeysvalueof{/pgf/decoration/mark info/sequence number}) at (1,0pt);
\coordinate (tangent orthogonal unit vector-\pgfkeysvalueof{/pgf/decoration/mark info/sequence number}) at (0pt,1);
}
},
postaction=decorate
},
use tangent/.style={
shift=(tangent point-#1),
x=(tangent unit vector-#1),
y=(tangent orthogonal unit vector-#1)
},
use tangent/.default=1
]
\def\a{4} % major half axis
\def\b{2} % minor half axis
\draw[thick, tangent=0.35] (0,0) ellipse ({\a} and {\b});
\fill (tangent point-1) circle [radius=2pt];
\draw [use tangent] (2,0) -- (-2,0);
\def\angle{125} % angle for point on ellipse
%Labelling the foci
\node[dot,label={below:$F_1$}] (F1) at ({-sqrt(\a*\a-\b*\b)},0) {};
\node[dot,label={below:$F_2$}] (F2) at ({+sqrt(\a*\a-\b*\b)},0) {};
%Point on ellipsis
\node[dot,label={\angle:$P$},blue] (P) at (\angle:{\a} and {\b}) {};
\draw (F1) -- (P) (P) -- (F2);
\end{tikzpicture}
\end{document}
tkz-euclide
.