TransWikia.com

circle arc through two points, in a disk

TeX - LaTeX Asked by user8268 on July 23, 2020

I would like to draw a circle X, inside it two points P1 and P2 (all of these with given coordinates). Let’s call Y the circle passing through P1 and P2, which is orthogonal to X. Then I would like to draw the part of Y inside X and to mark the intersections of X and Y.

This might be too much to do automatically (though it would be cool), but at least, if I already know Y, how can I draw only its part which is inside X?

enter image description here

2 Answers

I'm not sure to understand exactly the question but perhaps you want something like this.

documentclass{standalone}
usepackage{tkz-euclide}

begin{document}
begin{tikzpicture}[scale=3]
  tkzDefPoint(0,0){O}
  tkzDefPoint(1,0){A}
  tkzDrawCircle[blue](O,A)    
  tkzDefPoint(-.5,-.5){z1}
  tkzDefPoint(.5,-.25){z2} 
  tkzDefCircle[orthogonal through=z1 and z2](O,A) tkzGetPoint{B}
  tkzInterCC(O,A)(B,z1) tkzGetPoints{C}{D}  
  tkzDrawPoints[size=4](O,z1,z2,C,D,B) 
  tkzClipCircle(O,A)
  tkzDrawCircle[thick,color=red](B,z1)
end{tikzpicture} 

end{document} 

enter image description here

You can adapt this code with only TikZ

Correct answer by Alain Matthes on July 23, 2020

You mean something like this?

documentclass[tikz,border=5pt]{standalone}
usetikzlibrary{calc}

begin{document}

begin{tikzpicture}
path (0.6,0.8) coordinate (p) (-0.8,0.6) coordinate (q);
node at (p) [fill,circle,inner sep=0.7pt,label=$p$]{} node at (q) [fill,circle,inner sep=0.7pt,label=$q$]{};
path ($(p)!0.5!(q)$) coordinate (c) ($(0,0)!2!(c)$) coordinate (Y);

draw [clip] circle(1);
draw [blue] (Y) circle(1);
end{tikzpicture}

end{document}

enter image description here

Answered by AboAmmar on July 23, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP