summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tkz-euclide/examples/tkzEuclide-11-2-1.tex
blob: 747d00d946923e5d3d772355bfcfb75d60d29c3c (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. 60 (Section 11.2.1 : Coordinate transfer with \tkzcname{tkzGetVectxy})

\begin{tikzpicture}
 \tkzDefPoint(0,0){O}
 \tkzDefPoint(1,1){A}
 \tkzDefPoint(4,2){B}
 \tkzGetVectxy(A,B){v}
 \tkzDefPoint(\vx,\vy){V}
 \tkzDrawSegment[->,color=red](O,V)
 \tkzDrawSegment[->,color=blue](A,B)
 \tkzDrawPoints(A,B,O)
 \tkzLabelPoints(A,B,O,V)
\end{tikzpicture}

\end{document}