summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tkz/tkz-euclide/examples/tkzEuclide-18.1.2.tex
blob: 902c9febe21e37cd7a3ed4fbcc3a81e2bb4ecc81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
\input{preamble-standalone.ltx}
\begin{document}

% Ex. No. 141 (Section 18.1.2 : Example with  option \tkzname{diameter})

\begin{tikzpicture}[scale=1]
    \tkzDefPoint(0,0){A}
    \tkzDefPoint(2,2){B}
    \tkzDefCircle[diameter](A,B)
    \tkzGetPoint{O}
    \tkzDrawCircle[blue,fill=blue!20](O,B)
    \tkzDrawSegment(A,B)
    \tkzDrawPoints(A,B,O)
    \tkzLabelPoints(A,B,O)
\end{tikzpicture}

\end{document}