blob: 42d1f9e15bf0cef6d843b4d2e6cb1ae65a57fcf8 (
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. 65 (Section 12.5 : Random point on a circle)
\begin{tikzpicture}
\tkzInit[xmax=5,ymax=5] \tkzGrid
\tkzDefPoints{3/2/A,1/1/B}
\tkzCalcLength[cm](A,B) \tkzGetLength{rAB}
\tkzDrawCircle[R](A,\rAB cm)
\tkzDefRandPointOn[circle = center A radius
\rAB cm]\tkzGetPoint{a}
\tkzDrawSegment(A,a)
\tkzDrawPoints(A,B,a)
\tkzLabelPoints(A,B,a)
\end{tikzpicture}
\end{document}
|