summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tkz/tkz-euclide/examples/tkzEuclide-12-3-0.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/tkz/tkz-euclide/examples/tkzEuclide-12-3-0.tex')
-rw-r--r--macros/latex/contrib/tkz/tkz-euclide/examples/tkzEuclide-12-3-0.tex15
1 files changed, 15 insertions, 0 deletions
diff --git a/macros/latex/contrib/tkz/tkz-euclide/examples/tkzEuclide-12-3-0.tex b/macros/latex/contrib/tkz/tkz-euclide/examples/tkzEuclide-12-3-0.tex
new file mode 100644
index 0000000000..08286630a5
--- /dev/null
+++ b/macros/latex/contrib/tkz/tkz-euclide/examples/tkzEuclide-12-3-0.tex
@@ -0,0 +1,15 @@
+\input{preamble-standalone.ltx}
+\begin{document}
+
+% Ex. No. 62 (Section 12.3 : Random point on a segment)
+
+\begin{tikzpicture}
+ \tkzInit[xmax=5,ymax=5] \tkzGrid
+ \tkzDefPoints{0/0/A,2/2/B,3/3/C,5/5/D}
+ \tkzDefRandPointOn[segment = A--B]\tkzGetPoint{a}
+ \tkzDefRandPointOn[segment = C--D]\tkzGetPoint{d}
+ \tkzDrawPoints(A,B,C,D,a,d)
+ \tkzLabelPoints(A,B,C,D,a,d)
+\end{tikzpicture}
+
+\end{document}