circle-diameter-radius.tex 726 B

1234567891011121314151617181920212223242526
  1. \documentclass[varwidth=true, border=2pt]{standalone}
  2. \usepackage{tikz}
  3. \usetikzlibrary{shapes, calc, shapes, arrows}
  4. \usepackage{amsmath,amssymb}
  5. \usepackage{xcolor}
  6. \definecolor{xvectorcolor}{HTML}{77933C}
  7. \begin{document}
  8. \begin{tikzpicture}
  9. \newcommand{\R}{1.4}
  10. \path (240:\R) coordinate (A);
  11. \path ( 60:\R) coordinate (B);
  12. \path ( 0:\R) coordinate (C);
  13. \draw[green,fill=gray!10] (0,0) circle (\R);
  14. \draw[red] (0,0) -- (C);
  15. \path[red] ( 0:\R/2) node [below]{$r$};
  16. \draw[blue] (A) -- (B);
  17. \path[blue] (240:\R/2) node [below]{$d$};
  18. \draw[green] (0,0) circle (\R);
  19. \path[green] (135:\R*1.2) node {$c$};
  20. \draw[black] (0,0) node [left] {$M$};
  21. \end{tikzpicture}
  22. \end{document}