I am trying to recreate the following image
and so far I have this
My problem however is how to plot a sine curve, and get the
distances right (related to the sine curve). I am sure my code could be improved, like using pure tikz instead of tkz-euclide, but I have only learned how
to use the latter. Any help would be greatly appreciated.
\documentclass[10pt,a4paper]{article}
\usepackage{pgfplots,tikz,tkz-euclide}
\usetkzobj{all}
\begin{document}
\begin{tikzpicture}
\def\a{4} \def\b{2}
\tkzDefPoint(0,0){O}
\tkzDefPoint(0,-\b){B1} \tkzDefPoint(0,\a){B2}
\tkzDefMidPoint(O,B2) \tkzGetPoint{B3}
\tkzDefPoint(1,0){A1} \tkzDefPoint(1,\a){A2}
\tkzDefMidPoint(A1,A2) \tkzGetPoint{A3}
\tkzDefPoint(0.33,0){C1} \tkzDefPoint(7,0){C2}
\tkzDefPoint(0.33,-\b){D1} \tkzDefPoint(7,-\b){D2}
\tkzDrawSegments[triangle 45-triangle 45](B1,B2 A1,A2)
\tkzDrawSegments(C1,C2 D1,D2)
\tkzLabelPoint[above left](B3){$b$}
\tkzLabelPoint[above left](A3){$a$}
\tkzLabelPoint[below right](D2){Billedplan}
\tkzLabelPoint[ right](C2){Vannoverflate (linse)}
\end{tikzpicture}
\end{document}
And here is my MWE
Best Answer
Just for fun! [2]
Now with tikz.