Tikz④ 雑に作った円w

面倒だったので雑に作りましたw

\begin{tikzpicture}[scale=0.5]
\tikzmath{
  \a = 6; %底辺の長さ
  \b = 8; %右側の辺の長さ
  \c = 7; %左側の辺の長さ
  \A = acos((\b^2+\c^2-\a^2)/(2*\b*\c));
  \B = acos((\c^2+\a^2-\b^2)/(2*\c*\a));
  \C = acos((\a^2+\b^2-\c^2)/(2*\a*\b));
  \R = \a/(2*sin(\A));
}
\coordinate [label=below left:B](B) at (0,0);
\coordinate [label=above:A](A) at (\B:\c);
\coordinate [label=below right:C](C) at (0:\a);
\coordinate[label=above:O] (O) at (90-\A:\R);
\if0
\draw ($(A)!0.5!(B)$)node [above left]{\c};
\draw ($(B)!0.5!(C)$)node [below]{\a};
\draw ($(C)!0.5!(A)$)node [ right]{\b};
\fi
\draw (O) circle[radius=\R];
\draw[thick] (A)--(B)--(C)--cycle;
\draw (B)--(O)--(6.1,5.6)--(C);
\draw (6.1,5.6)--(A);

\coordinate[label=right:D](D) at(6.1,5.6);
\coordinate[label=below:L](L) at($(B)!0.3!(C)$);
\coordinate[label=above left:N](N) at($(B)!0.2!(A)$);
\coordinate[label=below left:H](H) at ($(A)!0.85!(L)$);
\draw (O)--($(B)!0.5!(C)$);
\coordinate[label=below:M](M) at($(B)!0.5!(C)$);
\draw(A)--(M);
\draw (H)--(O);


\draw (A)--($(B)!0.3!(C)$);
\draw (C)--($(B)!0.2!(A)$);

 \fill (O) circle[radius=2pt];


\end{tikzpicture}


いいなと思ったら応援しよう!