
私は持っている
\draw[draw=black!80,solid, -triangle 90,fill=black!80] (2.6, 4) -- (3.3, 4);
エンドポイントを現在の位置に配置したいのですが、円弧を描く必要があります。どうすればいいでしょうか?
編集: 次のようなものを探しています:
\draw [->] (0,0) arc (180:30:10pt);
曲線矢印のようなものですが、端点が私のものと同じです。ただし、三角形を正しい方向に向ける必要があります。
円の頂点をなぞる必要はなく、曲線的に上下に動くだけでよい(直線上に別の線があるからである)。つまり、基本的に、私はちょうど出発点からちょうどエンドポイント。1 本の線はすでに A から B まで直線になっています。しかし、今度は別の線を表示する必要があるため、矢印を曲げる必要があります。
答え1
これに対する TikZ フロントエンド コマンドが存在するかどうかはわかりません (あるとは思いますが、わかりません)。下位レベルのコマンドを使用すると、ソース ノードからターゲット ノードまでノード シェイプと交差する仮想のノード境界ポイントを描画するのと同じように、線上にあるノード境界ポイントを取得できます。
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\node[draw] (a) at (0,0) {A};
\node[draw,circle] (b) at (2,1) {B};
\draw[-latex] (a) -- (b);
\pgfcoordinate{c}{% a coordinate named c at....
\pgfpointshapeborder{a}{% the point on the border of node a
\pgfpointanchor{b}{center}% that sees the center anchor of node b
}
}
% Same for the border point of b
\pgfcoordinate{d}{\pgfpointshapeborder{b}{\pgfpointanchor{a}{center}}}
% Let's see if we make sense
\draw (c) edge[-latex,bend right] (d);
\end{tikzpicture}
\end{document}
矢印の醜さについては私は責任を負いかねます。願う内容には注意してください :)