\usetikzlibrary{calc,angles,positioning,intersections,quotes,decorations.markings}
\usepackage{tkz-euclide}
\usetkzobj{all}
\usepackage{tikz}
\usepackage[utf8]{inputenc}
\usepackage[english,greek]{babel} %βαζω την ελληνική γλώσσα...όλα θα γινουν ελληνικα αν δεν χρησιμοποιήσω το \en
\usepackage{alphabeta}
\usepackage{multicol}
\newcommand{\en}{\selectlanguage{english}}
\newcommand{\gr}{\selectlanguage{greek}}
\author{\textlatin{}}
\usepackage{array,amsmath}
\usepackage{amsthm}
\usepackage{lipsum}
\usepackage[T1]{fontenc}
\usepackage{smartdiagram}
\begin{tikzpicture}\hspace{-2mm}
\coordinate (A) at (5,0);
\coordinate (B) at (4,-3);
\coordinate (G) at (8,-3);
\filldraw[black] (A) circle (0.1pt) node[anchor=south] {A};
\filldraw[black] (B) circle (0.1pt) node[anchor=north] {B};
\filldraw[black] (G) circle (0.1pt) node[anchor=north] {G};
\draw [black,thick] (A)--(B)--(G)-- cycle;
\tkzDrawBisector[color=green](A,B,G)
\end{tikzpicture}
这是我的代码的一部分。我画了一个三角形 ABG 并找到了角平分线。我想知道如何在不自己协调点的情况下找到角平分线和 AG 线的交点。我的意思是,有没有办法从 B 画一条线到角平分线与 AG 的交点??
答案1
答案2
\begin{tikzpicture}\hspace{-2mm}
\coordinate (A) at (5,0);
\coordinate (B) at (4,-3);
\coordinate (G) at (8,-3);
\draw [black,thick] (A)node[anchor=south]{A}--(B)node[anchor=north]{B}--(G)node[anchor=north]{G}-- cycle;
\tkzDefLine[bisector](A,B,G) \tkzGetPoint{x}
\tkzInterLL(B,x)(A,G) \tkzGetPoint{I} %intersection of lines Bx and AG
\draw (B)--(I);
\tkzDrawPoints[color=black](A,B,G,I)
\tkzLabelPoints[above right](I)
\end{tikzpicture}
答案3
您已经加载了该calc
库,为什么不使用它?
\documentclass[tikz,border=3.14mm]{standalone}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
\coordinate (A) at (5,0);
\coordinate (B) at (4,-3);
\coordinate (G) at (8,-3);
\filldraw[black] (A) circle (0.1pt) node[anchor=south] {A};
\filldraw[black] (B) circle (0.1pt) node[anchor=north] {B};
\filldraw[black] (G) circle (0.1pt) node[anchor=north] {G};
\draw [black,thick] (A)--(B)--(G)-- cycle;
\draw[blue] (B) -- ($(A)!(B)!(G)$) node[circle,fill,inner sep=1pt,blue]{};
\end{tikzpicture}
\end{document}