circular-sector-centroid.tex 1.7 KB

123456789101112131415161718192021222324252627282930313233343536
  1. \documentclass{article}
  2. \usepackage[pdftex,active,tightpage]{preview}
  3. \setlength\PreviewBorder{2mm}
  4. \usepackage{tikz}
  5. \usetikzlibrary{shapes, calc, shapes,snakes}
  6. \usepackage{amsmath,amssymb}
  7. \begin{document}
  8. \begin{preview}
  9. \begin{tikzpicture}
  10. \newcommand\ALPHA{65}
  11. \newcommand\R{2.5cm}
  12. \newcommand\Add{0.5cm}
  13. \draw[fill=gray!10, thick] (0,0) -- (90+\ALPHA:\R) node [sloped,midway,below] {$r$} arc (90+\ALPHA:90-\ALPHA:\R) -- cycle;
  14. \draw[<-, thick] (90+\ALPHA:\R+\Add/2) arc (90+\ALPHA:95:\R+\Add/2);
  15. \draw[->, thick] (85:\R+\Add/2) arc (85:90-\ALPHA:\R+\Add/2);
  16. \draw[<->] (90+\ALPHA:\R/2) arc (90+\ALPHA:90:\R/2); % sloped \alpha didnt work
  17. \node at (90+\ALPHA/2:\R/2-\Add/2) {$\alpha$};
  18. \node at (90-\ALPHA/2:\R/2-\Add/2) {$\alpha$};
  19. \draw[<->] (90:\R/2) arc (90:90-\ALPHA:\R/2);
  20. \node at (0,\R) [above] (b) {$b$};
  21. \draw[dotted] (0,0) -- (90+\ALPHA:\R+\Add/2);
  22. \draw[dotted] (0,0) -- (90-\ALPHA:\R+\Add/2);
  23. \draw (0,0) -- (b);
  24. \draw[thick, <->] (-{sin(\ALPHA)*\R},-\Add/2) -- ({sin(\ALPHA)*\R},-\Add/2);
  25. \draw[dashed] (-{sin(\ALPHA)*\R},-\Add/2) -- (90+\ALPHA:\R);
  26. \draw[dashed] ( {sin(\ALPHA)*\R},-\Add/2) -- (90-\ALPHA:\R);
  27. \node[below] at (0,-\Add/2) (l) {$l$};
  28. \draw[dashed] (0,0) -- (\R/2,0) -- (\R/2, {2*\R*\R*sin(\ALPHA)/(2*pi*\ALPHA/360*2*\R)}) node[pos=0.7,right] {$y_s$} --
  29. (0, {2*\R*\R*sin(\ALPHA)/(2*pi*\ALPHA/360*2*\R)}) node [thick,draw,cross out,solid,inner sep=0pt,minimum width=4pt,minimum height=4pt] {};
  30. \node[left] at (0, {2*\R*\R*sin(\ALPHA)/(2*pi*\ALPHA/360*2*\R)}) {$S$};
  31. \node[thick,draw,cross out,solid,inner sep=0pt,minimum width=4pt,minimum height=4pt] (0,0) {};
  32. \end{tikzpicture}
  33. \end{preview}
  34. \end{document}