Quero desenhar a seguinte imagem:
Mas não sei como alinhá-lo com as duas linhas tracejadas.
\documentclass[margin=10pt]{standalone}
\usepackage{tkz-euclide}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
\pgfmathsetmacro{\a}{39/7} % AC
\pgfmathsetmacro{\b}{41/7} % AB
\pgfmathsetmacro{\c}{50/7} % BC
\tkzDefPoints{0/0/B,\c/0/C}
\tkzInterCC[R](B,\b cm)(C,\a cm) \tkzGetFirstPoint{A}
\tkzDefPointWith[orthogonal normed](B,A) \tkzGetPoint{B1}
\draw[thin,blue,densely dashed](B) -- (B1);
\tkzDefPointWith[orthogonal normed,K=-1](A,B) \tkzGetPoint{A1}
\draw[thin,blue,densely dashed](A) -- (A1);
\draw[thin,Stealth-Stealth]($(A)+(0,1)$) -- node[above,sloped]{$41$}($(B)+(0,1)$);
\fill[yellow!70] (B) -- (A) -- (C);
\tkzDrawPolygon[thick](A,B,C)
\end{tikzpicture}
\end{document}
Responder1
Com tkz-euclide
você pode usar uma coordenada baricêntrica, que pode ser usada para colocar pontos entre outros pontos. Se você quisesse que o ponto fosse colocado a 7/10 do caminho entre os dois pontos (digamos A e B), você usaria \tkzDefBarycentricPoint(A=3,B=7)
.
\documentclass[margin=10pt]{standalone}
\usepackage{tkz-euclide}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
\pgfmathsetmacro{\a}{39/7} % AC
\pgfmathsetmacro{\b}{41/7} % AB
\pgfmathsetmacro{\c}{50/7} % BC
\tkzDefPoints{0/0/B,\c/0/C}
\tkzInterCC[R](B,\b cm)(C,\a cm) \tkzGetFirstPoint{A}
\tkzDefPointWith[orthogonal normed](B,A) \tkzGetPoint{B1}
\draw[thin,blue,densely dashed](B) -- (B1);
\tkzDefPointWith[orthogonal normed,K=-1](A,B) \tkzGetPoint{A1}
\draw[thin,blue,densely dashed](A) -- (A1);
\tkzDefBarycentricPoint(A=3,A1=7)\tkzGetPoint{x}
\tkzDefBarycentricPoint(B=3,B1=7)\tkzGetPoint{y}
\draw[thin,Stealth-Stealth](x) -- node[above,sloped]{$41$}(y);
\fill[yellow!70] (B) -- (A) -- (C);
\tkzDrawPolygon[thick](A,B,C)
\end{tikzpicture}
\end{document}
Responder2
\documentclass[margin=10pt]{standalone}
\usepackage{tkz-euclide}
\begin{document}
\begin{tikzpicture}
\pgfmathsetmacro{\a}{39/7} % AC
\pgfmathsetmacro{\b}{41/7} % AB
\pgfmathsetmacro{\c}{50/7} % BC
\tkzDefPoints{0/0/B,\c/0/C}
\tkzInterCC[R](B,\b cm)(C,\a cm) \tkzGetFirstPoint{A}
\tkzDefPointWith[orthogonal normed](B,A) \tkzGetPoint{B1}
\tkzDefPointWith[orthogonal normed,K=-1](A,B) \tkzGetPoint{A1}
\tkzDrawPolygon[thick,fill=yellow](A,B,C)
\tkzDrawPoints(A,B,C)
\tkzLabelPoints(B,C)
\tkzLabelPoints[above,right](A)
\tkzDrawSegment[dim={$41$,-15pt,above=4pt,font=\scriptsize,rotate=45}](A,B)
\end{tikzpicture}
\end{document}