Gibt es eine Möglichkeit, das Segment mit dem folgenden Code zu erstellen, um eine Linie AB plus 1 cm zu einem Punkt C zu zeichnen, offensichtlich ohne die Koordinaten zu berechnen.
\documentclass{article}
\usepackage{tkz-euclide}
\begin{document}
\begin{tikzpicture}
\tkzDefPoint(0,0){A}
\tkzDefPoint(2,3){B}
\tkzDrawSegment(A,B)
\tkzDrawPoints(A,B)
\tkzLabelPoints(A,B)
\end{tikzpicture}
\end{document}
Danke
Antwort1
Eine Möglichkeit
\documentclass{article}
\usepackage{tkz-euclide}
\begin{document}
\begin{tikzpicture}
\tkzDefPoint(0,0){A}
\tkzDefPoint(2,3){B}
\tkzDefPointWith[linear normed,K=-1](B,A)
\tkzGetPoint{C}
\tkzDrawSegments(A,B B,C)
\tkzDrawPoints(A,B,C)
\tkzLabelPoints(A,B,C)
\end{tikzpicture}
\end{document}
Andere Möglichkeit
\tkzDefPointWith[colinear= at B,normed](A,B)
Beachten Sie, dass Sie eine Berechnung durchführen müssen, um die Steigung von (AB) zu bestimmen, wenn Sie möchten, dass C mit A und B ausgerichtet ist. Im Allgemeinen besteht das Prinzip hier darin, den Vektor AB durch seine Norm zu teilen.
Antwort2
Dieser Code \tkzDefPointBy[translation=from A to B](1,0)
erstellt Punkt C, der 1 cm hinter Punkt B entlang der Linie AB liegt. Dadurch entfällt die Notwendigkeit orthogonaler Vektorberechnungen.
\documentclass{article}
\usepackage{tkz-euclide}
\begin{document}
\begin{tikzpicture}
\tkzDefPoint(0,0){A}
\tkzDefPoint(2,3){B}
\tkzDrawSegment(A,B)
\tkzDrawPoints(A,B)
\tkzLabelPoints(A,B)
% Extend the line segment AB by 1cm to create point C
\tkzDefPointBy[translation=from A to B](1,0)
\tkzGetPoint{C}
\tkzDrawSegment(B,C)
\tkzDrawPoint(C)
\tkzLabelPoints(C)
\end{tikzpicture}
\end{document}