Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. documentclass[tikz,border=3.14mm]{standalone}
  2. usetikzlibrary{through,intersections}
  3. begin{document}
  4. begin{tikzpicture}
  5. path (2,0) coordinate (A) (-2,0) coordinate (B) (0,1)
  6. coordinate (C) (0,0) coordinate (O);
  7. node[draw,name path=circ] (Circ) at (O) [circle through={(C)}]{};
  8. draw[name path=line] (A) -- (B);
  9. draw[thick,blue,->,name intersections={of=circ and line,sort by=circ}] (intersection-1) -- (intersection-2);
  10. end{tikzpicture}
  11. end{document}
  12.  
  13. documentclass[tikz,border=3.14mm]{standalone}
  14. usetikzlibrary{through,intersections}
  15. begin{document}
  16. begin{tikzpicture}
  17. path (-45:2) coordinate (A) (135:2) coordinate (B) (0,1)
  18. coordinate (C) (0,0) coordinate (O);
  19. node[draw,name path=circ] (Circ) at (O) [circle through={(C)}]{};
  20. draw[name path=line] (A) -- (B);
  21. draw[thick,blue,->,name intersections={of=circ and line,sort by=circ}] (intersection-1) -- (intersection-2);
  22. end{tikzpicture}
  23. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement