triangle-thales-circle.tex 823 B

1234567891011121314151617181920212223242526272829303132
  1. \documentclass[varwidth=true, border=2pt]{standalone}
  2. \usepackage{tkz-euclide}
  3. \begin{document}
  4. \usetkzobj{all}
  5. \begin{tikzpicture}
  6. \tkzSetUpPoint[shape=circle,size=10,color=black,fill=black]
  7. \tkzSetUpLine[line width=1]
  8. \tkzDefPoints{0/0/O, -5/0/A, 5/0/B, 5/5/M, -5/5/N}
  9. \tkzDefPoint(60:5){X}
  10. \tkzDefPoint(150:5){Y}
  11. \tkzDrawArc[color=black, thick, fill=gray!20](O,B)(A)
  12. % Avoid too long edges of polygon
  13. \tkzClipPolygon(A,B,M,N)
  14. \tkzClipCircle(O,B)
  15. \tkzDrawPolygon[fill=red,fill opacity=0.5](A,B,X)
  16. \tkzMarkRightAngle(A,X,B)
  17. \tkzDrawPolygon[fill=blue,fill opacity=0.5](A,B,Y)
  18. \tkzMarkRightAngle(A,Y,B)
  19. % lines should not colored
  20. \tkzDrawPolygon(A,B,X)
  21. \tkzDrawPolygon(A,B,Y)
  22. \tkzDrawArc[color=black, thick](O,B)(A)
  23. \end{tikzpicture}
  24. \end{document}