triangle-9-point-circle-escribed-circles.tex 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. \documentclass{article}
  2. \usepackage[pdftex,active,tightpage]{preview}
  3. \setlength\PreviewBorder{2mm}
  4. \usepackage{tikz}
  5. \usepackage{tkz-euclide}
  6. \usetkzobj{all}
  7. \usetikzlibrary{shapes, calc, decorations}
  8. \usepackage{amsmath,amssymb}
  9. \usepackage{helvet}
  10. \usepackage[eulergreek]{sansmath}
  11. \begin{document}
  12. \begin{preview}
  13. \begin{tikzpicture}[very thick,font=\sansmath\sffamily]
  14. \tkzDefPoint(0,1){A}
  15. \tkzDefPoint(4,0){B}
  16. \tkzDefPoint(3,6){C}
  17. \tkzLabelPoints[below left,font=\sansmath\sffamily](A)
  18. \tkzLabelPoints[below right,font=\sansmath\sffamily](B)
  19. \tkzLabelPoints[above,font=\sansmath\sffamily](C)
  20. % Draw polygon
  21. \tkzDrawPolygon[thick,fill=gray!10](A,B,C)
  22. % Get mid points
  23. \tkzDefMidPoint(A,B) \tkzGetPoint{F}
  24. \tkzDefMidPoint(A,C) \tkzGetPoint{E}
  25. \tkzDefMidPoint(B,C) \tkzGetPoint{D}
  26. \tkzDefCircle[circum,/tikz/overlay](D,E,F)\tkzGetPoint{Icircle}\tkzGetLength{rIN}
  27. % Get 'Hoehe'
  28. \tkzInterLC[/tikz/overlay](B,C)(A,B)\tkzGetPoints{hah1}{hah2}
  29. \tkzDefMidPoint(hah1,hah2) \tkzGetPoint{G}
  30. \tkzInterLC[/tikz/overlay](A,B)(C,A)\tkzGetPoints{hch1}{hch2}
  31. \tkzDefMidPoint(hch1,hch2) \tkzGetPoint{H}
  32. \tkzInterLC[/tikz/overlay](A,C)(B,A)\tkzGetPoints{hbh1}{hbh2}
  33. \tkzDefMidPoint(hbh1,hbh2) \tkzGetPoint{I}
  34. % 'Hoehenschnittpunkt'
  35. \tkzInterLL(A,G)(C,H)\tkzGetPoint{S}
  36. % More points
  37. \tkzInterLC[/tikz/overlay,R](A,G)(Icircle,\rIN pt)\tkzGetPoints{G}{J}
  38. \tkzInterLC[/tikz/overlay,R](B,I)(Icircle,\rIN pt)\tkzGetPoints{L}{I}
  39. \tkzInterLC[/tikz/overlay,R](C,H)(Icircle,\rIN pt)\tkzGetPoints{H}{K}
  40. % Draw polygon
  41. \tkzDrawPolygon[thick](A,B,C)
  42. \tkzDefCircle[in,/tikz/overlay](A,B,C) \tkzGetPoint{Ocircle}\tkzGetLength{dOcircle}
  43. \tkzDrawCircle[R](Ocircle,\dOcircle pt)
  44. \tkzDefCircle[circum,/tikz/overlay](D,E,F)\tkzGetPoint{Icircle}\tkzGetLength{rIN}
  45. \tkzClipCircle[R](Icircle,5cm)
  46. % Get escribed circles
  47. % first one
  48. \tkzDefLine[bisector](B,A,C)\tkzGetPoint{alphaBisector}
  49. \tkzDefBarycentricPoint(A=1,B=-2)\tkzGetPoint{ABproj}
  50. \tkzDefLine[bisector](ABproj,B,C)\tkzGetPoint{betaOuterBisector}
  51. % \tkzDrawSegments[blue](A,alphaBisector B,betaOuterBisector)
  52. \tkzInterLL(A,alphaBisector)(B,betaOuterBisector) \tkzGetPoint{EscribedCircleCenter1}
  53. \tkzInterLC(A,alphaBisector)(Icircle,H)\tkzGetPoints{EscribedCircleRadius1a}{EscribedCircleRadius2b}
  54. \tkzDrawCircle[color=blue](EscribedCircleCenter1,EscribedCircleRadius1a)
  55. % second one
  56. \tkzDefLine[bisector](C,B,A)\tkzGetPoint{betaBisector}
  57. \tkzDefBarycentricPoint(B=1,A=-2)\tkzGetPoint{BAproj}
  58. \tkzDefLine[bisector](C,A,BAproj)\tkzGetPoint{alphaOuterBisector}
  59. % \tkzDrawSegments[blue](B,betaBisector A,alphaOuterBisector)
  60. \tkzInterLL(B,betaBisector)(A,alphaOuterBisector) \tkzGetPoint{EscribedCircleCenter2}
  61. \tkzInterLC(B,betaBisector)(Icircle,H)\tkzGetPoints{EscribedCircleRadius2a}{EscribedCircleRadius2b}
  62. \tkzDrawCircle[color=blue](EscribedCircleCenter2,EscribedCircleRadius2b)
  63. % third one
  64. \tkzDefLine[bisector](A,C,B)\tkzGetPoint{gammaBisector}
  65. \tkzDefBarycentricPoint(A=-2,C=1)\tkzGetPoint{ACproj}
  66. \tkzDefLine[bisector](ACproj,A,B)\tkzGetPoint{gammaOuterBisector}
  67. % \tkzDrawSegments[blue](C,gammaBisector A,gammaOuterBisector)
  68. \tkzInterLL(C,gammaBisector)(A,gammaOuterBisector) \tkzGetPoint{EscribedCircleCenter3}
  69. \tkzInterLC(C,gammaBisector)(Icircle,H)\tkzGetPoints{EscribedCircleRadius3a}{EscribedCircleRadius3b}
  70. \tkzDrawCircle[color=blue](EscribedCircleCenter3,EscribedCircleRadius3b)
  71. \tkzDrawPoints[size=2,fill=black](D,E,F,Ocircle)
  72. \tkzDrawPoints[size=2,fill=red,color=red](Icircle)
  73. \tkzDrawCircle[R,color=red,very thick](Icircle,\rIN pt)
  74. \end{tikzpicture}
  75. \end{preview}
  76. \end{document}