triangle-similar.tex 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. \documentclass[varwidth=true, border=2pt]{standalone}
  2. \usepackage{tikz}
  3. \usepackage{tkz-euclide}
  4. \begin{document}
  5. \usetkzobj{all}
  6. \begin{tikzpicture}
  7. \tkzSetUpPoint[shape=circle,size=10,color=black,fill=black]
  8. \tkzSetUpLine[line width=1]
  9. \tkzDefPoints{0/0/A, 3/0/B', 2/2/C, 4/4/C'}
  10. \tkzDefLine[parallel=through C](B',C') \tkzGetPoint{Phelper}
  11. \tkzInterLL(A,B')(C,Phelper) \tkzGetPoint{B}
  12. \tkzDrawLine[add=0 and 0.2](A,B')
  13. \tkzDrawLine[add=0 and 0.2](A,C')
  14. \tkzDrawSegment(B',C')
  15. \node at ($(A)+(-0.1,-0.2)$) {$A$};
  16. \node at ($(B')+(0.2,-0.2)$) {$B'$};
  17. \node at ($(C')+(0,0.4)$) {$C'$};
  18. \node at ($(B)+(0.2,-0.2)$) {$B$};
  19. \node at ($(C)+(0.28,0.5)$) {$C$};
  20. \tkzDrawPolygon[ultra thick,color=blue,fill=blue!20](A,B',C')
  21. \tkzDrawPolygon[line width=0.3pt,color=red,fill=red!20](A,B,C)
  22. \tkzDrawPoints(A,B',C',B,C)
  23. \tkzLabelSegment[below,red](A,B){$c$}
  24. \tkzLabelSegment[left,red](A,C){$b$}
  25. \tkzLabelSegment[right,red](B,C){$a$}
  26. \tkzLabelSegment[below,blue,pos=0.8](A,B'){$c'$}
  27. \tkzLabelSegment[left,blue,pos=0.8](A,C'){$b'$}
  28. \tkzLabelSegment[right,blue](B',C'){$a'$}
  29. \end{tikzpicture}
  30. \end{document}