summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tkz-euclide/examples/tkzeuclide-20-6-1.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/tkz-euclide/examples/tkzeuclide-20-6-1.tex')
-rw-r--r--Master/texmf-dist/doc/latex/tkz-euclide/examples/tkzeuclide-20-6-1.tex35
1 files changed, 35 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/tkz-euclide/examples/tkzeuclide-20-6-1.tex b/Master/texmf-dist/doc/latex/tkz-euclide/examples/tkzeuclide-20-6-1.tex
new file mode 100644
index 00000000000..f654bcee821
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/tkz-euclide/examples/tkzeuclide-20-6-1.tex
@@ -0,0 +1,35 @@
+\begin{tikzpicture} [rotate=18,scale=1.5]
+ \tkzDefPoint(0,0){A}
+ \tkzDefPoint(2.25,0.2){B}
+ \tkzDefPoint(2.5,2.75){C}
+ \tkzDefPoint(-0.75,2){D}
+ \tkzDrawPolygon[fill=black!50!blue!20!](A,B,C,D)
+ \tkzDrawSegments[style=dashed](A,C B,D)
+\end{tikzpicture}\end{tkzexample}
+
+
+\subsection{Clipper un polygone}
+ \begin{NewMacroBox}{tkzClipPolygon}{\oarg{local options}\parg{liste de points}}
+Cette macro permet de contenir les différentes tracés dans le polygone désigné.
+
+\medskip
+\begin{tabular}{lll}
+\toprule
+options & exemple & explication \\
+\midrule
+\TAline{\parg{pt1,pt2}}{\parg{A,B}}{}
+%\bottomrule
+ \end{tabular}
+\end{NewMacroBox}
+\subsubsection{Exemple simple avec \tkzcname{tkzClipPolygon}}
+\begin{tkzexample}[latex=7 cm,small]
+\begin{tikzpicture}[scale=1.25]
+ \tkzInit[xmin=0,xmax=4,ymin=0,ymax=3]
+ \tkzClip[space=.5]
+ \tkzDefPoint(0,0){A} \tkzDefPoint(4,0){B}
+ \tkzDefPoint(1,3){C} \tkzDrawPolygon(A,B,C)
+ \tkzDefPoint(0,2){D} \tkzDefPoint(2,0){E}
+ \tkzDrawPoints(D,E) \tkzLabelPoints(D,E)
+ \tkzClipPolygon(A,B,C)
+ \tkzDrawLine[color=red](D,E)
+\end{tikzpicture}