summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tkz-base/examples/tkzBase-11-10-3.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/tkz-base/examples/tkzBase-11-10-3.tex')
-rw-r--r--Master/texmf-dist/doc/latex/tkz-base/examples/tkzBase-11-10-3.tex18
1 files changed, 18 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/tkz-base/examples/tkzBase-11-10-3.tex b/Master/texmf-dist/doc/latex/tkz-base/examples/tkzBase-11-10-3.tex
new file mode 100644
index 00000000000..6e082f1e947
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/tkz-base/examples/tkzBase-11-10-3.tex
@@ -0,0 +1,18 @@
+\input{preamble-standalone.ltx}
+\begin{document}
+
+% Ex. No. 94 (Section 11.10.3 : Somme de vecteurs avec \tkzcname{tkzGetPointCoord})
+
+\begin{tikzpicture}[>=latex]
+ \tkzDefPoint(1,4){a}
+ \tkzDefPoint(3,2){b}
+ \tkzDefPoint(1,1){c}
+ \tkzDrawSegment[->,red](a,b)
+ \tkzGetPointCoord(c){c}
+ \draw[color=blue,->](a) -- ([shift=(b)]\cx,\cy) ;
+ \draw[color=purple,->](b) -- ([shift=(b)]\cx,\cy) ;
+ \tkzDrawSegment[->,blue](a,c)
+ \tkzDrawSegment[->,purple](b,c)
+\end{tikzpicture}
+
+\end{document}