Example: Distance, velocity and acceleration vectors

Published 2010-01-31 | Author: Jason Waskiewicz

Download as: [PDF] [TEX]  •  [Open in Overleaf]

Distance, velocity and acceleration vectors

Do you have a question regarding this example, TikZ or LaTeX in general? Just ask in the LaTeX Forum.
Oder frag auf Deutsch auf TeXwelt.de. En français: TeXnique.fr.

% Distance, velocity and acceleration vectors
% Author: Jason Waskiewicz

%Draw Circle radius 1 cm
    \draw (0,0) circle (1cm);
%The foreach command counts the angle of the distance vectors and which distance vector
    \foreach \angle/\count in {20/1,140/2,260/3}

%Draws the 3 distance vectors
        \draw [name=distance vectors,very thick,->] (
            0,0) -- node[near start,fill=white] {$\vec{r}_{\count}$} (\angle:1cm);
%Draws the 3 velocity vectors at right angles to the distance vectors
        \draw [name=velocity vectors,rotate around={90:(\angle:1cm)},very thick,->]
            (\angle:1cm) -- node[fill=white] {$\vec{v}_{\count}$} (\angle:1.6cm) ;
%Draws the 3 acceleration vectors directed inward and offset slightly from the distance vectors
        \draw [name=acceleration vectors,very thick,->]
            (\angle+5:1cm) -- node[fill=white] {$\vec{a}_{\count}$} (\angle+15:0.3cm) ;



Adding comments is currently not enabled.

Scientific and technical areas


LaTeX Beginners Guide

Limited discount 50%
coupon code tDRet6Y

Creative Commons License