答案1
除 之外angles
,正如 John Kormylo 所提到的,您可能还想使用calc
。然后,构建图片就很简单了(最多为一个总长度尺度,这不是由数据固定的)。
\documentclass[tikz,border=3mm]{standalone}
\usetikzlibrary{angles,calc,quotes}
\begin{document}
\begin{tikzpicture}
\path[angle eccentricity=1.5,angle radius=1cm]
(0,0) coordinate[label=below left:$C$] (C)
(0,pi) coordinate[label=above left:$B$] (B)
(10:5) coordinate (auxC1) (40:5) coordinate (auxC2)
($(B)+(-10:5)$) coordinate (auxB1)
($(B)+(-30:5)$) coordinate (auxB2)
(intersection of B--auxB1 and C--auxC1) coordinate[label=right:$A$](A)
(intersection of C--A and B--auxB2) coordinate[label=below:$E$](E)
(intersection of B--A and C--auxC2) coordinate[label=above:$F$](F)
pic[draw,"$30^\circ$"]{angle=E--C--F}
pic[draw,"$50^\circ$"]{angle=F--C--B}
pic[draw,"$60^\circ$"]{angle=C--B--E}
pic[draw,"$20^\circ$"]{angle=E--B--F}
pic[draw,"$x$"]{angle=F--E--B};
\draw[thick] (A) -- (B) -- (C) -- cycle (B) -- (E) -- (F) -- (C);
\end{tikzpicture}
\end{document}
你也可以问 Ti钾Z 测量角度x
。
\documentclass[tikz,border=3mm]{standalone}
\usetikzlibrary{angles,calc,quotes}
\begin{document}
\begin{tikzpicture}
\path[angle eccentricity=1.5,angle radius=1cm]
(0,0) coordinate[label=below left:$C$] (C)
(0,5) coordinate[label=above left:$B$] (B)
(10:5) coordinate (auxC1) (40:5) coordinate (auxC2)
($(B)+(-10:5)$) coordinate (auxB1)
($(B)+(-30:5)$) coordinate (auxB2)
(intersection of B--auxB1 and C--auxC1) coordinate[label=right:$A$](A)
(intersection of C--A and B--auxB2) coordinate[label=below:$E$](E)
(intersection of B--A and C--auxC2) coordinate[label=above:$F$](F)
pic[draw,"$30^\circ$"]{angle=E--C--F}
pic[draw,"$50^\circ$"]{angle=F--C--B}
pic[draw,"$60^\circ$"]{angle=C--B--E}
pic[draw,"$20^\circ$"]{angle=E--B--F}
let \p1=($(B)-(E)$),\p2=($(F)-(E)$),
\n1={atan2(\y1,\x1)},\n2={atan2(\y2,\x2)} in
pic[draw,"$x=\pgfmathparse{\n1-\n2}\pgfmathprintnumber\pgfmathresult^\circ$",
angle radius=2cm,angle eccentricity=1.25]{angle=F--E--B};
\draw[thick] (A) -- (B) -- (C) -- cycle (B) -- (E) -- (F) -- (C);
\end{tikzpicture}
\end{document}
答案2
\documentclass[tikz,border=3mm]{standalone}
\usepackage{tkz-euclide}
\begin{document}
\begin{tikzpicture}
\tkzDefPoints{0/0/C,0/pi/B}
\tkzDefPointBy[rotation=center C angle -80](B) \tkzGetPoint{BB}
\tkzDefPointBy[rotation=center B angle 80](C) \tkzGetPoint{CC}
\tkzInterLL(B,CC)(C,BB) \tkzGetPoint{A}
\tkzDefPointBy[rotation=center C angle 30](A) \tkzGetPoint{AA}
\tkzDefPointBy[rotation=center B angle -20](A) \tkzGetPoint{AAA}
\tkzInterLL(B,A)(C,AA) \tkzGetPoint{F}
\tkzInterLL(C,A)(B,AAA) \tkzGetPoint{E}
% drawing
\tkzDrawPolygon(A,B,C)
\tkzDrawSegments(C,F B,E E,F)
% marking
\tkzMarkAngles[mark=none](F,E,B E,C,B C,B,F)
\tkzLabelAngle[pos=1.5](E,C,F){$30^\circ$}
\tkzLabelAngle[pos=1.5](E,B,F){$20^\circ$}
\tkzLabelAngle[pos=1.5](F,C,B){$50^\circ$}
\tkzLabelAngle[pos=1.5](C,B,E){$60^\circ$}
\tkzLabelAngle[pos=1.5](F,E,B){$x$}
% labeling
\tkzLabelPoints[left](B,C)
\tkzLabelPoints[right](A)
\tkzLabelPoints[above](F)
\tkzLabelPoints[below](E)
\end{tikzpicture}
\end{document}