summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tkz-euclide/examples/tkzEuclide-22.6.1.tex
blob: a29cfe07ec5ee22903655f925206ea2aacc58a30 (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
\input{preamble-standalone.ltx}
\begin{document}

% Ex. No. 190 (Section 22.6.1 : Folding)

\begin{tikzpicture}
  \tkzDefPoint(1,5){A}
  \tkzDefPoint(5,2){B}
  \tkzDrawSegment(A,B)
  \tkzFindSlopeAngle(A,B)
  \tkzGetAngle{tkzang}
  \tkzDefPointBy[rotation= center A angle \tkzang ](B)
  \tkzGetPoint{C}
  \tkzDefPointBy[rotation= center A angle -\tkzang ](B)
  \tkzGetPoint{D}
  \tkzCompass[orange,length=1](A,C)
  \tkzCompass[orange,delta=10](B,C)
  \tkzDrawPoints(A,B,C,D)
  \tkzLabelPoints(B,C,D)
  \tkzLabelPoints[above left](A)
  \tkzDrawSegments[style=dashed,color=orange](A,C A,D)
\end{tikzpicture}

\end{document}