summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tkz-euclide/examples/tkzEuclide-09-7-1.tex
blob: bd131e4c5f02e8b2c1daa4787bd18a27730a236d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
\input{preamble-standalone.ltx}
\begin{document}

% Ex. No. 46 (Section  9.7.1 : Inversion of points)

\begin{tikzpicture}[scale=1.5]
  \tkzDefPoint(0,0){O}
  \tkzDefPoint(1,0){A}
  \tkzDrawCircle(O,A)
  \tkzDefPoint(-1.5,-1.5){z1}
  \tkzDefPoint(0.35,0){z2}
  \tkzDrawPoints[color=black,
      fill=red,size=4](O,z1,z2)
  \tkzDefPointBy[inversion =%
      center O through A](z1)
  \tkzGetPoint{Z1}
  \tkzDefPointBy[inversion =%
      center O through A](z2)
  \tkzGetPoint{Z2}
  \tkzDrawPoints[color=black,
      fill=red,size=4](Z1,Z2)
  \tkzDrawSegments(z1,Z1 z2,Z2)
  \tkzLabelPoints(O,A,z1,z2,Z1,Z2)
\end{tikzpicture}

\end{document}