triangle-thales-circle.tex 888 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!10](O,B)(A)
  12. % Avoid too long edges of polygon
  13. \tkzClipPolygon(A,B,M,N)
  14. \tkzClipCircle(O,B)
  15. % Draw polygons and mark right angle
  16. \tkzDrawPolygon[fill=red,fill opacity=0.3](A,B,X)
  17. \tkzMarkRightAngle[very thick](A,X,B)
  18. \tkzDrawPolygon[fill=green,fill opacity=0.3](A,B,Y)
  19. \tkzMarkRightAngle[very thick](A,Y,B)
  20. % lines should not colored
  21. \tkzDrawPolygon(A,B,X)
  22. \tkzDrawPolygon(A,B,Y)
  23. \tkzDrawArc[color=black, thick](O,B)(A)
  24. \end{tikzpicture}
  25. \end{document}