Quantcast
Channel: Fragen markiert mit mit schnittpunkte
Viewing all articles
Browse latest Browse all 6

Wie kann ich in TikZ eine Strecke bis zu einer anderen Strecke verlängern?

$
0
0

Ich hab hier ein komplexes Beispiel. Ich möchte die Winkelhalbierende bis zur gegenüberliegenden Dreiecksseite verlängern.

alt text

Wenn das Beispiel zu aufwendig ist, kann ich auch ein minimaleres Beispiel erstellen.

Open in Online-Editor
\documentclass[border=5pt, varwidth]{standalone}%\documentclass[]{article}\usepackage[utf8]{inputenc}\usepackage[ngerman]{babel}\usepackage[T1]{fontenc}\usepackage{amsmath,amsfonts,amssymb}\usepackage{tikz}\usetikzlibrary{calc}\begin{document}\begin{tikzpicture}[scale=1]

% Dreieck% Koordinaten der Eckpunkte\pgfmathsetmacro{\xA}{0}\pgfmathsetmacro{\yA}{0}\pgfmathsetmacro{\xB}{5}\pgfmathsetmacro{\yB}{0}\pgfmathsetmacro{\xC}{3}\pgfmathsetmacro{\yC}{2}\coordinate[label=below:$A$] (A) at (\xA,\yA);
\coordinate[label=below:$B$] (B) at (\xB,\yB);
\coordinate[label=above:$C$] (C) at (\xC,\yC);
% Dreieck zeichnen\draw[] (A) -- (B) -- (C) -- cycle;

% Seitenlängen\pgfmathsetmacro{\a}{sqrt((\xB - \xC)^2 + (\yB - \yC)^2)}\pgfmathsetmacro{\b}{sqrt((\xA - \xC)^2 + (\yA - \yC)^2)}\pgfmathsetmacro{\c}{sqrt((\xA - \xB)^2 + (\yA - \yB)^2)}% Inkreis% Koordinate des Inkreismittelpunktes\pgfmathsetmacro{\p}{\a+\b+\c}\pgfmathsetmacro{\xW}{(\a*\xA + \b*\xB + \c*\xC)/\p}\pgfmathsetmacro{\yW}{(\a*\yA + \b*\yB + \c*\yC)/\p}\coordinate (W) at (\xW,\yW);
% Inkreisradius\pgfmathsetmacro{\s}{\p/2}\pgfmathsetmacro{\r}{sqrt(((\s-\a)*(\s-\b)*(\s-\c))/\s)}% Inkreis zeichnen%\draw[blue] (W) circle[radius=\r];% Winkelhalbierende bis Inkreismittelpunkt W\draw[] (A) -- (W);
%\draw[] (B) -- (W);%\draw[] (C) -- (W);% Verlängerung bis gegenüberliegende Dreiecksseite%\coordinate[label=below:] (Wa) at (,);%? ? ?? ? ?? ? ?? ? ?%? ? ?? ? ?? ? ?? ? ?%? ? ?? ? ?? ? ?? ? ?\end{tikzpicture}\end{document}

Viewing all articles
Browse latest Browse all 6

Latest Images





Latest Images