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.

enter image description here

  • 1
    Could you please upload an image of what you want to achieve, and/or preferably a MWE showing what you have tried so far? – AboAmmar Jul 22 '20 at 15:09
  • @AboAmmar sorry my computer started having problems and I wasn't able to draw it – user8268 Jul 22 '20 at 16:14
  • Your question is more about math/geometry than about LaTeX, right? – Zarko Jul 22 '20 at 16:14
  • @Zarko no, I can compute/construct everything without any problem, I just didn't know how to do it nicely in tikz without manually putting in the computed numbers – user8268 Jul 22 '20 at 16:17
  • 1
    @AndréC thanks for the suggestion – user8268 Jul 23 '20 at 19:30

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


  \tkzDefCircle[orthogonal through=z1 and z2](O,A) \tkzGetPoint{B}
  \tkzInterCC(O,A)(B,z1) \tkzGetPoints{C}{D}  


enter image description here

You can adapt this code with only TikZ

  • Thanks a lot, that's exactly what I wanted! – user8268 Jul 22 '20 at 16:15
  • For my tastes I will put in background the red curve :-) +1 for all the question/answers. – Sebastiano Jul 23 '20 at 12:31
  • 1
    @Sebastiano you are right ! – Alain Matthes Jul 23 '20 at 18:34
  • Thank you so much for understanding. You're very good user. Greetings from the Sicily. – Sebastiano Jul 23 '20 at 18:50
  • 1
    @Sebastiano I updated the code ! – Alain Matthes Jul 24 '20 at 15:46

You mean something like this?



\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);


enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.