1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
\input{preamble-standalone.ltx}
\begin{document}
% Ex. No. 48 (Section 10.1 : Example de translation)
\begin{tikzpicture}
\tkzDefPoint(0,0){A} \tkzDefPoint(4,2){A'}
\tkzDefPoint(3,0){B} \tkzDefPoint(1,2){C}
\tkzDefPointsBy[translation= from A to A'](B,C){}
\tkzDrawPolygon[color=blue](A,B,C)
\tkzDrawPolygon[color=red](A',B',C')
\tkzDrawPoints[color=blue](A,B,C)
\tkzDrawPoints[color=red](A',B',C')
\tkzLabelPoints(A,B,A',B')
\tkzLabelPoints[above](C,C')
\tkzDrawSegments[color = gray,->,
style=dashed](A,A' B,B' C,C')
\end{tikzpicture}
\end{document}
|