I want to draw a line that goes through a point A en B but does not stop at A nor at B. Can anybody help. I want to use it for constructions in optics.
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{intersections}
\begin{document}
\begin{tikzpicture}
\draw[very thin, dotted, color=gray,step= 0.5 cm] (-12.1,-5.1) grid (12.1,5.1);
\draw (-12.1,0) -- (12.1,0) ;
\draw [<->, ultra thick] (0,-3.2) -- (0,3.2) ;
\coordinate (L1) at (0,3);
\coordinate (L2) at (0,-3);
\coordinate (L3) at (0,1.5); %evenwijdig met hoofdas
\coordinate (V1) at (9,0);
\coordinate (V2) at (9,1.5);
\coordinate (F1) at (4,0);
\coordinate (F2) at (-4,0);
\draw [->, thick] (V1) -- (V2) node[right] {voorwerp};
\fill (F1) circle (2pt) node[below] {$f_1$};
\fill (F2) circle (2pt) node[below] {$f_2$};
\draw [name path=A--B] (V2) -- (L3);
\draw [name path=C--D] (L1) -- (L2);
\path [name intersections={of=A--B and C--D,by=E}];
\node [fill=red,inner sep=1pt,label=-90:$E$] at (E) {};
\draw [name path=K--L] (E) -- (F2);
\line(4,2){6};
\end{tikzpicture}
\end{document}




