triangle-similar.tex 1.1 KB

1234567891011121314151617181920212223242526
  1. \begin{tikzpicture}
  2. \tkzSetUpPoint[shape=circle,size=10,color=black,fill=black]
  3. \tkzSetUpLine[line width=1]
  4. \tkzDefPoints{0/0/A, 3/0/B', 2/2/C, 4/4/C'}
  5. \tkzDefLine[parallel=through C](B',C') \tkzGetPoint{Phelper}
  6. \tkzInterLL(A,B')(C,Phelper) \tkzGetPoint{B}
  7. \tkzDrawLine[add=0 and 0.2](A,B')
  8. \tkzDrawLine[add=0 and 0.2](A,C')
  9. \tkzDrawSegment(B',C')
  10. \node at ($(A)+(-0.1,-0.2)$) {$A$};
  11. \node at ($(B')+(0.2,-0.2)$) {$B'$}; % \tkzLabelPoint[below](B){$B$} is not accurate enough
  12. \node at ($(C')+(0,0.4)$) {$C'$};
  13. \node at ($(B)+(0.2,-0.2)$) {$B$};
  14. \node at ($(C)+(0.28,0.5)$) {$C$};
  15. \tkzDrawPolygon[ultra thick,color=blue,fill=blue!20](A,B',C')
  16. \tkzDrawPolygon[line width=0.3pt,color=red,fill=red!20](A,B,C)
  17. \tkzDrawPoints(A,B',C',B,C)
  18. \tkzLabelSegment[below,red](A,B){$c$}
  19. \tkzLabelSegment[left,red](A,C){$b$}
  20. \tkzLabelSegment[right,red](B,C){$a$}
  21. \tkzLabelSegment[below,blue,pos=0.8](A,B'){$c'$}
  22. \tkzLabelSegment[left,blue,pos=0.8](A,C'){$b'$}
  23. \tkzLabelSegment[right,blue](B',C'){$a'$}
  24. \end{tikzpicture}