diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/tkz-euclide/examples/tkzEuclide-09-1-1.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/tkz-euclide/examples/tkzEuclide-09-1-1.tex | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/tkz-euclide/examples/tkzEuclide-09-1-1.tex b/Master/texmf-dist/doc/latex/tkz-euclide/examples/tkzEuclide-09-1-1.tex new file mode 100644 index 00000000000..ed299332347 --- /dev/null +++ b/Master/texmf-dist/doc/latex/tkz-euclide/examples/tkzEuclide-09-1-1.tex @@ -0,0 +1,24 @@ +\input{preamble-standalone.ltx} +\begin{document} + +% Ex. No. 40 (Section 9.1.1 : Example of reflection) + +\begin{tikzpicture}[scale=1] + \tkzInit[ymin=-4,ymax=6,xmin=-7,xmax=3] + \tkzClip + \tkzDefPoints{1.5/-1.5/C,-4.5/2/D} + \tkzDefPoint(-4,-2){O} + \tkzDefPoint(-2,-2){A} + \foreach \i in {0,1,...,4}{% + \pgfmathparse{0+\i * 72} + \tkzDefPointBy[rotation=% + center O angle \pgfmathresult](A) + \tkzGetPoint{A\i} + \tkzDefPointBy[reflection = over C--D](A\i) + \tkzGetPoint{A\i'}} + \tkzDrawPolygon(A0, A2, A4, A1, A3) + \tkzDrawPolygon(A0', A2', A4', A1', A3') + \tkzDrawLine[add= .5 and .5](C,D) +\end{tikzpicture} + +\end{document} |