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

% Ex. No. 130 (Section 19.2.3 : Example of Andrew Mertz )

 \begin{tikzpicture}[scale=.5]
 \tkzDefPoint(100:8){A}\tkzDefPoint(50:8){B}
 \tkzDefPoint(0,0){C} \tkzDefPoint(0,4){R}
 \tkzDrawCircle(C,R)
 \tkzDefTangent[from = A](C,R)  \tkzGetPoints{D}{E}
 \tkzDefTangent[from = B](C,R)  \tkzGetPoints{F}{G}
 \tkzDrawSector[fill=blue!80!black,opacity=0.5](A,D)(E)
 \tkzFillSector[color=red!80!black,opacity=0.5](B,F)(G)
 \tkzInterCC(A,D)(B,F) \tkzGetSecondPoint{I}
 \tkzDrawPoint[color=black](I)
\end{tikzpicture}

\end{document}