Блог Федора Сарафанова

Исходники иллюстрации

pre.tex

\documentclass[tikz]{standalone}\input{pre.tex}\begin{document}\begin{tikzpicture}[
    force/.style={>=latex,draw=blue,fill=blue},
    % axis/.style={densely dashed,gray,font=\small},
    axis/.style={densely dashed,black!60,font=\small},
    interface/.style={
        pattern = north east lines,
        draw    = none,
        pattern color=gray!60,          
    },
    cargo/.style={
        rectangle,
        fill=magenta!40,
        draw=black!50,
        inner sep=2.5mm,
    },
    spring/.style={
        decoration={
            aspect=0.3, 
            segment length=.8mm, 
            amplitude=2mm,
            coil},
        decorate,
        draw=magenta!25
    },
    interface1/.style={draw=gray!60,
        % The border decoration is a path replacing decorator. 
        % For the interface style we want to draw the original path.
        % The postaction option is therefore used to ensure that the
        % border decoration is drawn *after* the original path.
        postaction={draw=gray!60,decorate,decoration={border,angle=-135,
                    amplitude=0.3cm,segment length=2mm}}},    
    % scale=0.95
]
\def\angle{41}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    \draw[force,->] (-3,0) -- ++(1,0) node[right]{$\vec{v}_0$};
    \contourlength{1mm};

    % \draw[thick] (0,0) --  ++(0,-3);
    \draw[thick,->] (0,-1.5) -- node[left,xshift=-5pt] {$\vec{l}_1$} ++(0,1.15);
    \draw[thick,->] (0,-1.5) -- node[left,xshift=-5pt] {$\vec{l}_2$} ++(0,-1.15);
    % \draw[thick,->] (0,-1.325) -- node[right, xshift=5pt] {$\vec{l}/2$} ++(0,-1.325);

    % \draw[thick,->] (0,0) -- node[right, below] {$\vec{r}$} ++(-2.8,-2.69);

    % \draw[interface] (-3,0) rectangle ++(6,0.5);
    % \draw[line width=0.4mm] (-3,0) -- ++(6,0);
    % \draw[fill=magenta] (0,0) circle (3pt) node[above, yshift=3pt] {\contour{white}{$O$}};
    \draw[thick] (0,0) -- (0,-3);

    \draw (0,-1.2) node[scale=1.5, magenta] {$\times$} node[right, xshift=3pt, yshift=-1pt] {ц.м.};
    
    \draw[fill=magenta] (-3,0) circle (0.35) node {\contour{white}{$m_1$}};
    \draw[fill=magenta] (0,-3) circle (0.35) node {\contour{white}{$m_2$}};
    \draw[fill=magenta] (0,0) circle (0.35) node {\contour{white}{$m_3$}};


    \draw[axis,->] (-3,-4) -- ++(6,0) node[right] {$+x$};
    \draw[axis,->] (-1.3,-4) -- ++(0,4) node[right] {$+y$};

    \draw (2,0) node[blue] {$\bigotimes$} node[right, xshift=.5em] {$\vec{g}$};
    \draw (2,-2) node[magenta] {$\bigotimes$} node[right, xshift=.5em, magenta] {$\vec{N}_c^*$};
    % \draw[force,->] (0,0) -- (-1,0) node[left, below]{$\vec{f}$};


\end{tikzpicture}\end{document}