summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tkz-euclide/examples/tkzEuclide-12.2.4.tex
blob: 0b7bb6747aaf296d868d7c22dad7c7919fe6001c (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. 87 (Section 12.2.4 : Drawing a tangent option \tkzimp{from with R} and \tkzimp{at})

\begin{tikzpicture}[scale=.5]
  \tkzDefPoint(0,0){O}
  \tkzDefRandPointOn[circle=center O radius 4cm]
  \tkzGetPoint{A}
  \tkzDefTangent[at=A](O)
  \tkzGetPoint{h}
  \tkzDrawSegments(O,A)
  \tkzDrawCircle(O,A)
  \tkzDrawLine[add = 1 and 1](A,h)
  \tkzMarkRightAngle[fill=red!30](O,A,h)
\end{tikzpicture}

\end{document}