如何在 Tikz 中旋转三角形?

如何在 Tikz 中旋转三角形?

我想要让图形旋转。

\begin{figure}
              \begin{tikzpicture}
                  \coordinate (A) at (0,0);
                  \coordinate (B) at (1,-2);
                  \coordinate (C) at (3,2);
                  \draw[thin, dashed](A)node[left]{A}--(B)node[below]{B}--(C)node[above]{C}--cycle;
                  \draw[thick,rotate around={90:(B)}](A)node[left]{A}--(B)node[below]{B}--(C)node[above]{C}--cycle;
              \end{tikzpicture}
          \end{figure}

但图形没有旋转。

答案1

尝试:

\begin{tikzpicture}[rotate=30]
            \coordinate (A) at (0,0);
            \coordinate (B) at (1,-2);
            \coordinate (C) at (3,2);
            \draw[thin, dashed,](A)node[left]{A}--(B)node[below]{B}--(C)node[above]{C}--cycle;
            \draw[thick,rotate around={90:(B)}](A)node[left]{A}--(B)node[below]{B}--(C)node[above]{C}--cycle;
\end{tikzpicture}

相关内容