summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tkz-euclide/examples/tkzEuclide-18-1-1.tex
blob: faead36ac4035cf7cd51c708ebf35abfaec79948 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
\input{preamble-standalone.ltx}
\begin{document}

% Ex. No. 106 (Section 18.1.1 : Using \tkzcname{tkzDefSquare} with two points)

\begin{tikzpicture}[scale=.5]
  \tkzDefPoint(0,0){A} \tkzDefPoint(3,0){B}
  \tkzDefSquare(A,B)
  \tkzDrawPolygon[color=red](A,B,tkzFirstPointResult,%
               tkzSecondPointResult)
  \tkzDefSquare(B,A)
  \tkzDrawPolygon[color=blue](B,A,tkzFirstPointResult,%
               tkzSecondPointResult)
\end{tikzpicture}

\end{document}