![將角平分線繪製為虛線段](https://rvso.com/image/305912/%E5%B0%87%E8%A7%92%E5%B9%B3%E5%88%86%E7%B7%9A%E7%B9%AA%E8%A3%BD%E7%82%BA%E8%99%9B%E7%B7%9A%E6%AE%B5.png)
(1). AX
,角 C^{'}AC 的平分線,必須是虛線段。
(2)。C^{'}X
必須繪製,且該線也必須是虛線。
\documentclass[11pt,a4paper]{article}
\usepackage{blindtext}
\usepackage{tikz}
\usepackage{tkz-euclide}
\usetkzobj{all}
\usepackage{color}
\begin{document}
\begin{tikzpicture}
\tkzDefPoint(0,0){A}
\tkzDefPoint(12,0){B}
\tkzDefPoint(3,7){C}
\tkzDefPoint(10,4){C^{'}}
\tkzLabelPoints[below](A)
\tkzLabelPoints[below](B)
\tkzLabelPoints[above](C)
\tkzLabelPoints[right](C^{'})
\tkzDrawSegment(A,B)
\tkzDrawSegment(A,C^{'})
\tkzDrawSegment(B,C^{'})
\tkzDrawSegment(A,C)
\tkzDrawSegment(B,C)
\tkzMarkSegment[color=red,pos=0.5,mark=|](A,B)
\tkzMarkSegment[color=red,pos=0.5,mark=||](A,C^{'})
\tkzMarkSegment[color=red,pos=0.5,mark=||](A,C)
\tkzDefLine[bisector](C^{'},A,C)
\tkzGetPoint{X}
\tkzDrawSegment[add=0pt and -273pt](A,X)
\tkzLabelLine[pos=0.45](A,X){X}
\tkzDrawSegment[dashed](C^{'},X)
\end{tikzpicture}
\end{document}
答案1
這些是相關行:
\tkzDefLine[bisector](C^{'},A,C)
\tkzGetPoint{x}
\tkzInterLL(A,x)(C,B)
\tkzGetPoint{X}
求 的平分線C^{'}AC
並得到其終點x
;然後找到和X
之間的交集。Ax
CB
代碼:
\documentclass[11pt,a4paper]{article}
\usepackage{tkz-euclide}
\usetkzobj{all}
\begin{document}
\begin{tikzpicture}
\tkzDefPoint(0,0){A}
\tkzDefPoint(12,0){B}
\tkzDefPoint(3,7){C}
\tkzDefPoint(10,4){C^{'}}
\tkzLabelPoints[below](A)
\tkzLabelPoints[below](B)
\tkzLabelPoints[above](C)
\tkzLabelPoints[right](C^{'})
\tkzDrawSegment(A,B)
\tkzDrawSegment(A,C^{'})
\tkzDrawSegment(B,C^{'})
\tkzDrawSegment(A,C)
\tkzDrawSegment(B,C)
\tkzMarkSegment[color=red,pos=0.5,mark=|](A,B)
\tkzMarkSegment[color=red,pos=0.5,mark=||](A,C^{'})
\tkzMarkSegment[color=red,pos=0.5,mark=||](A,C)
\tkzDefLine[bisector](C^{'},A,C)
\tkzGetPoint{x}
\tkzInterLL(A,x)(C,B)
\tkzGetPoint{X}
\tkzLabelPoints[above](X)
\tkzDrawSegment[dashed](A,X)
\tkzDrawSegment[dashed](C^{'},X)
\end{tikzpicture}
\end{document}