summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tkz/tkz-euclide/examples/tkzEuclide-11.2.0.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/tkz/tkz-euclide/examples/tkzEuclide-11.2.0.tex')
-rw-r--r--macros/latex/contrib/tkz/tkz-euclide/examples/tkzEuclide-11.2.0.tex18
1 files changed, 18 insertions, 0 deletions
diff --git a/macros/latex/contrib/tkz/tkz-euclide/examples/tkzEuclide-11.2.0.tex b/macros/latex/contrib/tkz/tkz-euclide/examples/tkzEuclide-11.2.0.tex
new file mode 100644
index 0000000000..2d256cb366
--- /dev/null
+++ b/macros/latex/contrib/tkz/tkz-euclide/examples/tkzEuclide-11.2.0.tex
@@ -0,0 +1,18 @@
+\input{preamble-standalone.ltx}
+\begin{document}
+
+% Ex. No. 72 (Section 11.2 : Random point in a rectangle)
+
+\begin{tikzpicture}
+ \tkzInit[xmax=5,ymax=5]\tkzGrid
+ \tkzDefPoints{0/0/A,2/2/B,5/5/C}
+ \tkzDefRandPointOn[rectangle = A and B]
+ \tkzGetPoint{a}
+ \tkzDefRandPointOn[rectangle = B and C]
+ \tkzGetPoint{d}
+ \tkzDrawLine(a,d)
+ \tkzDrawPoints(A,B,C,a,d)
+ \tkzLabelPoints(A,B,C,a,d)
+\end{tikzpicture}
+
+\end{document} \ No newline at end of file