Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. documentclass[border={1mm 1mm 1mm 1mm}]{standalone}
  2. usepackage{tikz}
  3. usetikzlibrary{intersections}
  4.  
  5. begin{document}
  6. begin{tikzpicture}
  7. defR{2}
  8. defH{4}
  9. defW{2}
  10. draw [red,domain=90:180] plot ({R*cos(x)}, {R*sin(x)});
  11. draw[blue](0,0)rectangle(-R,H);
  12. end{tikzpicture}
  13. begin{tikzpicture}
  14. defR{4}
  15. defH{4}
  16. defW{2.2}
  17. draw [red,domain=90:180,name path=A] plot ({R*cos(x)}, {R*sin(x)});
  18. draw[red](0,0)--(-R,0);
  19. draw[blue,name path=B](0,0)rectangle(-W,H);
  20. path [name intersections={of=A and B,by={E, F}}];
  21. draw[green](0,0)--(F) node[midway,above,sloped]{H};
  22. draw [fill=red,draw=none] (F) circle(1pt);
  23. end{tikzpicture}
  24. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement