triangle-5.tex 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. \documentclass[varwidth=true, border=2pt]{standalone}
  2. \usepackage{tkz-euclide}
  3. \usepackage{tikz}
  4. \usetikzlibrary{patterns}
  5. \begin{document}
  6. \usetkzobj{all}
  7. \begin{tikzpicture}
  8. \tkzSetUpPoint[shape=circle,size=10,color=black,fill=black]
  9. \tkzSetUpLine[line width=1]
  10. \tkzDefPoints{0/0/A, 4/0/B, -2/3/C}
  11. \tkzDefLine[orthogonal=through C,/tikz/overlay](A,B) \tkzGetPoint{helper}
  12. \tkzInterLL(A,B)(C,helper) \tkzGetPoint{Lc}
  13. %\tkzMarkAngle[arc=l,size=0.4cm,color=red,fill=red!20](A,La,B)
  14. %\tkzLabelAngle[pos=0.25](A,La,B){$\cdot$}
  15. \tkzDrawPolygon(A,B,C)
  16. \node at ($(A)+(-0.47,-0.2)$){$A$};
  17. \node at ($(B)+(0.35,-0.2)$) {$B$}; % \tkzLabelPoint[below](B){$B$} is not accurate enough
  18. \node at ($(C)+(0.05,0.3)$) {$C$};
  19. \node[green] at ($(Lc)+(-0.4,-0.1)$) {$L_C$};
  20. \tkzDrawSegments[red](C,Lc)
  21. \tkzDrawSegments[blue](A,B)
  22. \tkzDrawSegments[dashed](Lc,A)
  23. \tkzLabelSegment[right,red](C,Lc){$h_c$}
  24. \tkzLabelSegment[above,blue](A,B){$c$}
  25. \tkzDrawPoints(A,B,C)
  26. \tkzDrawPoints[color=green,fill=green](Lc)
  27. \end{tikzpicture}
  28. \end{document}