blob: 181ace6c64c85586b11da8dbf8932d0504ebbc14 (
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. 71 (Section 10.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}
|