summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tkz-euclide/examples/tkzEuclide-09-2-1.tex
blob: 05d6c6a05a79506c1608caf52e3a8c1bfea23ff5 (plain)
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. 41 (Section  9.2.1 : Example of homothety and projection)

\begin{tikzpicture}[scale=1.25]
  \tkzInit   \tkzClip
  \tkzDefPoint(0,1){A}   \tkzDefPoint(6,3){B}   \tkzDefPoint(3,6){C}
  \tkzDrawLines[add= 0 and .3](A,B A,C)
  \tkzDefLine[bisector](B,A,C)                     \tkzGetPoint{a}
  \tkzDrawLine[add=0 and 0,color=magenta!50 ](A,a)
  \tkzDefPointBy[homothety=center A ratio .5](a)   \tkzGetPoint{a'}
  \tkzDefPointBy[projection = onto A--B](a')       \tkzGetPoint{k}
  \tkzDrawSegment[blue](a',k)
  \tkzDrawPoints(a,a',k,A)
  \tkzDrawCircle(a',k)
  \tkzLabelPoints(a,a',k,A)
\end{tikzpicture}

\end{document}