[Tex/LaTex] Simple way to draw a triangle with one side and two angles given

tikz-pgf

What's the simplest way to draw an triangle (not as a node!) with tikz with a given side and two given angles?

Best Answer

Got an example by googling Solving ASA triangles .

\documentclass[tikz]{standalone}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
% Given
\def\myside{9}
\def\myanga{76}
\def\myangb{34}
%===============
\draw (0,0) -- (0:\myside)
     let \n1={(180-(\myanga+\myangb))},
         \n2={(\myside*(sin(\myanga)/sin(\n1))} in
     -- (\myangb:\n2) -- cycle node{\n1,\n2};
\end{tikzpicture}
\end{document}

enter image description here