equilateral-triangle-circles.tex 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. \documentclass[varwidth=true, border=2pt]{standalone}
  2. \usepackage{tikz}
  3. \usetikzlibrary{arrows,positioning, calc, shapes.misc}
  4. \tikzset{
  5. %Define standard arrow tip
  6. >=stealth',
  7. % Define arrow style
  8. pil/.style={->,thick}
  9. }
  10. \tikzstyle{point}=[ thick,
  11. draw=gray,
  12. cross out,
  13. inner sep=0pt,
  14. minimum width=4pt,
  15. minimum height=4pt]
  16. \begin{document}
  17. \begin{tikzpicture}
  18. % draw the background
  19. % -2/cos(30°) = 4/sqrt(3) \approx 2.309 - Umkreisradius
  20. % 2*tan(30°) = 2/sqrt(3) \approx 1.155 - Inkreisradius
  21. \node[point] (TriangleCenter) at (0,0) {};
  22. \draw[thick, draw=blue] (TriangleCenter) circle(2.345cm);
  23. \begin{scope}[shift={(30:-2.309)}]
  24. \draw [line width=1.5pt, fill=gray!2] (0,0) -- (60:4) -- (4,0) -- cycle;
  25. \draw[thick, draw=green] (TriangleCenter) circle(1.12cm);
  26. \coordinate[label=left:$A$] (A) at (0,0);
  27. \coordinate[label=right:$B$] (B) at (4,0);
  28. \coordinate[label=above:$C$] (C) at (2,3.464);
  29. % Sign for right angle of h_c
  30. %\begin{scope}[shift={(2,0)}]
  31. % \draw[fill=gray!30] (0,0) -- node[above=-0.15cm,near start] {$\cdot$} (0:0.18cm)
  32. % arc (0:90:.18cm);
  33. %\end{scope}
  34. % sign of right angle of h_a
  35. %\begin{scope}[shift={(30:3.464cm)}]
  36. % \draw[fill=gray!30] (0,0) -- node[near end,right=-0.28cm] {$\cdot$} (-60:0.18cm)
  37. % arc (-60:-150:.18cm);
  38. %\end{scope}
  39. % sign of right angle of h_b
  40. %\begin{scope}[shift={(60:2cm)}]
  41. % \draw[fill=gray!30] (0,0) -- node[right=-0.08cm, near start] {$\cdot$} (60:0.18cm)
  42. % arc (60:-30:.18cm);
  43. %\end{scope}
  44. % angle alpha
  45. %\draw[fill=green!30] (0,0) -- (0:0.75cm) arc (0:60:.75cm);
  46. %\draw (0.35cm,0.25cm) node {$\alpha$};
  47. % angle beta
  48. \begin{scope}[shift={(4cm,0cm)}]
  49. %\draw[fill=green!30] (0,0) -- (-180:0.75cm) arc (180:120:0.75cm);
  50. \draw[color=gray, dashed] (0,0) -- node[sloped, above=-0.1cm] {} (150:3.464cm); % $\scriptstyle h_b$
  51. %\draw (150:0.5cm) node {$\beta$};
  52. \end{scope}
  53. % angle gamma
  54. \begin{scope}[shift={(60:4)}]
  55. %\draw[fill=green!30] (0,0) -- (-120:.75cm) arc (-120:-60:.75cm);
  56. \draw[color=gray, dashed] (0,0) -- node[right=-0.1cm] {} (-90:3.464cm); % $\scriptstyle h_c$
  57. %\draw (-90:0.5cm) node {$\gamma$};
  58. \end{scope}
  59. % Height with label
  60. \draw[color=gray, dashed] (0,0) -- node[sloped, above=-0.1cm] {} (30:3.464cm); % $\scriptstyle h_a$
  61. % The triangle
  62. \draw [line width=1.5pt] (0,0) -- (60:4) -- (4,0) -- cycle;
  63. \end{scope}
  64. \coordinate[label=below:$c$](c) at ($ (A)!.5!(B) $);
  65. \coordinate[label=left:$b$] (b) at ($ (A)!.5!(C) $);
  66. \coordinate[label=right:$a$](a) at ($ (B)!.5!(C) $);
  67. \end{tikzpicture}
  68. \end{document}