1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
\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}
|