我认为这个问题很容易理解。令我困惑的是,我竟然找不到这个问题的现有答案。
\begin{tikzpicture}
\foreach \angle in {0,120,...,240} {
\begin{scope}[rotate=\angle]
\draw[dotted] (0,0) -- node[above] {Want an arrow here} ++(0:2) -- ++(120:2);
\draw[dotted] (0,0) -- ++(60:2) -- ++(180:2);
\filldraw (0:0) circle(2pt);
\filldraw[color=red] (0:0) ++(0:2) circle(2pt);
\filldraw[color=blue] (0:0) ++(0:2) ++(120:2) circle(2pt);
\end{scope}
}
\end{tikzpicture}
答案1
三种不同的选择,取决于您真正想要/需要:
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,positioning,calc}
\begin{document}
\begin{tikzpicture}[]
\foreach \angle in {0,120,...,240} {
\begin{scope}[rotate=\angle]
\draw (0:0) edge[cyan, -Stealth] (0:2);
\draw[yshift=0.2cm] (0:.75) edge[green, -Stealth] ++(0:.5);
\draw[dotted] (0,0) -- node[above, rotate=\angle] {$\to$} ++(0:2) -- ++(120:2);
\draw[dotted] (0,0) -- ++(60:2) -- ++(180:2);
\filldraw (0:0) circle(2pt);
\filldraw[color=red] (0:0) ++(0:2) circle(2pt);
\filldraw[color=blue] (0:0) ++(0:2) ++(120:2) circle(2pt);
\end{scope}
}
\end{tikzpicture}
\end{document}