summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tkz-euclide/TKZdoc-euclide-pointwith.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/tkz-euclide/TKZdoc-euclide-pointwith.tex')
-rw-r--r--Master/texmf-dist/doc/latex/tkz-euclide/TKZdoc-euclide-pointwith.tex159
1 files changed, 85 insertions, 74 deletions
diff --git a/Master/texmf-dist/doc/latex/tkz-euclide/TKZdoc-euclide-pointwith.tex b/Master/texmf-dist/doc/latex/tkz-euclide/TKZdoc-euclide-pointwith.tex
index 8af18810030..b157cabef7f 100644
--- a/Master/texmf-dist/doc/latex/tkz-euclide/TKZdoc-euclide-pointwith.tex
+++ b/Master/texmf-dist/doc/latex/tkz-euclide/TKZdoc-euclide-pointwith.tex
@@ -2,7 +2,9 @@
\subsection{\tkzcname{tkzDefPointWith}}
There are several possibilities to create points that meet certain vector conditions.
-This can be done with \tkzcname{tkzDefPointWith}. The general principle is as follows, two points are passed as arguments, i.e. a vector. The different options allow to obtain a new point forming with the first point (with some exceptions) a collinear vector or a vector orthogonal to the first vector. Then the length is either proportional to that of the first one, or proportional to the unit. Since this point is only used temporarily, it does not have to be named immediately. The result is in \tkzname{tkzPointResult}. The macro \tkzNameMacro{tkzGetPoint} allows you to retrieve the point and name it differently.
+This can be done with
+
+\tkzcname{tkzDefPointWith}. The general principle is as follows, two points are passed as arguments, i.e. a vector. The different options allow to obtain a new point forming with the first point (with some exceptions) a collinear vector or a vector orthogonal to the first vector. Then the length is either proportional to that of the first one, or proportional to the unit. Since this point is only used temporarily, it does not have to be named immediately. The result is in \tkzname{tkzPointResult}. The macro \tkzNameMacro{tkzGetPoint} allows you to retrieve the point and name it differently.
There are options to define the distance between the given point and the obtained point.
In the general case this distance is the distance between the 2 points given as arguments if the option is of the "normed" type then the distance between the given point and the obtained point is 1 cm. Then the $K$ option allows to obtain multiples.
@@ -38,47 +40,68 @@ options & example & explication \\
\end{tabular}
\end{NewMacroBox}
-\subsubsection{Option \tkzname{colinear at}}
+\subsubsection{Option \tkzname{colinear at}, simple example}
$(\overrightarrow{AB}=\overrightarrow{CD})$
\begin{tkzexample}[latex=6cm,small]
\begin{tikzpicture}[scale=1.2,
- vect/.style={->,shorten >=3pt,>=latex'}]
+ vect/.style={->,shorten >=1pt,>=latex'}]
\tkzDefPoint(2,3){A} \tkzDefPoint(4,2){B}
\tkzDefPoint(0,1){C}
\tkzDefPointWith[colinear=at C](A,B)
\tkzGetPoint{D}
- \tkzDrawPoints[color=red](A,B,C,D)
+ \tkzDrawPoints[new](A,B,C,D)
\tkzLabelPoints[above right=3pt](A,B,C,D)
\tkzDrawSegments[vect](A,B C,D)
\end{tikzpicture}
\end{tkzexample}
+\subsubsection{Option \tkzname{colinear at}, complex example}
+\begin{tkzexample}[vbox,small]
+\begin{tikzpicture}[scale=.75]
+\tkzDefPoints{0/0/B,3.6/0/C,1.5/4/A}
+\tkzDefSpcTriangle[ortho](A,B,C){Ha,Hb,Hc}
+\tkzDefTriangleCenter[ortho](A,B,C) \tkzGetPoint{H}
+\tkzDefSquare(A,C) \tkzGetPoints{R}{S}
+\tkzDefSquare(B,A) \tkzGetPoints{M}{N}
+\tkzDefSquare(C,B) \tkzGetPoints{P}{Q}
+\tkzDefPointWith[colinear= at M](A,S) \tkzGetPoint{A'}
+\tkzDefPointWith[colinear= at P](B,N) \tkzGetPoint{B'}
+\tkzDefPointWith[colinear= at Q](C,R) \tkzGetPoint{C'}
+\tkzDefPointBy[projection=onto P--Q](Ha) \tkzGetPoint{Pa}
+\tkzDrawPolygon[teal,thick](A,C,R,S)\tkzDrawPolygon[teal,thick](A,B,N,M)
+\tkzDrawPolygon[teal,thick](C,B,P,Q)
+\tkzDrawPoints[teal,size=2](A,B,C,Ha,Hb,Hc,A',B',C')
+\tkzDrawSegments[ultra thin,red](M,A' A',S P,B' B',N Q,C' C',R B,S C,M C,N B,R A,P A,Q)
+\tkzDrawSegments[ultra thin,teal, dashed](A,Ha B,Hb C,Hc)
+\tkzDefPointBy[rotation=center A angle 90](S) \tkzGetPoint{S'}
+\tkzDrawSegments[ultra thin,teal,dashed](B,S' A,S' A,A' M,S' B',Q P,C' M,S Ha,Pa)
+\tkzDrawArc(A,S)(S')
+\end{tikzpicture}
+\end{tkzexample}
-\subsubsection{Option \tkzname{colinear at} with $K$}
-
+\subsubsection{Option \tkzname{colinear at}}
+How to use $K$
\begin{tkzexample}[latex=7cm,small]
\begin{tikzpicture}[vect/.style={->,
- shorten >=3pt,>=latex'}]
- \tkzDefPoint(0,0){A}
- \tkzDefPoint(5,0){B}
- \tkzDefPoint(1,2){C}
+ shorten >=1pt,>=latex'}]
+ \tkzDefPoints{0/0/A,5/0/B,1/2/C}
\tkzDefPointWith[colinear=at C](A,B)
\tkzGetPoint{G}
- \tkzDefPointWith[colinear=at C,K=0.5](A,B)
+ \tkzDefPointWith[colinear=at C, K=0.5](A,B)
\tkzGetPoint{H}
\tkzLabelPoints(A,B,C,G,H)
\tkzDrawPoints(A,B,C,G,H)
- \tkzDrawSegments[vect](A,B C,H)
+ \tkzDrawSegments[vect](A,B C,H)
\end{tikzpicture}
\end{tkzexample}
-\subsubsection{Option \tkzname{colinear at} with $K=\frac{\sqrt{2}}{2}$}
+\subsubsection{Option \tkzname{colinear at} }
+With $K=\frac{\sqrt{2}}{2}$
+
\begin{tkzexample}[latex=6cm,small]
\begin{tikzpicture}[vect/.style={->,
- shorten >=3pt,>=latex'}]
- \tkzDefPoint(1,1){A}
- \tkzDefPoint(4,2){B}
- \tkzDefPoint(2,2){CU}
+ shorten >=1pt,>=latex'}]
+ \tkzDefPoints{1/1/A,4/2/B,2/2/C}
\tkzDefPointWith[colinear=at C,K=sqrt(2)/2](A,B)
\tkzGetPoint{D}
\tkzDrawPoints[color=red](A,B,C,D)
@@ -90,9 +113,8 @@ options & example & explication \\
AB=AC since $K=1$.
\begin{tkzexample}[latex=6cm,small]
\begin{tikzpicture}[scale=1.2,
- vect/.style={->,shorten >=3pt,>=latex'}]
- \tkzDefPoint(2,3){A}
- \tkzDefPoint(4,2){B}
+ vect/.style={->,shorten >=1pt,>=latex'}]
+ \tkzDefPoints{2/3/A,4/2/B}
\tkzDefPointWith[orthogonal,K=1](A,B)
\tkzGetPoint{C}
\tkzDrawPoints[color=red](A,B,C)
@@ -105,14 +127,14 @@ AB=AC since $K=1$.
-\subsubsection{Option \tkzname{orthogonal} with $K=-1$}
+\subsubsection{Option \tkzname{orthogonal}}
+ With $K=-1$
OK=OI since $\lvert K \rvert=1$ then OI=OJ=OK.
\begin{tkzexample}[latex=7cm,small]
\begin{tikzpicture}[scale=.75]
- \tkzDefPoint(1,2){O}
- \tkzDefPoint(2,5){I}
- \tkzDefPointWith[orthogonal](O,I)
+ \tkzDefPoints{1/2/O,2/5/I}
+ \tkzDefPointWith[orthogonal](O,I)
\tkzGetPoint{J}
\tkzDefPointWith[orthogonal,K=-1](O,I)
\tkzGetPoint{K}
@@ -129,16 +151,16 @@ OK=OI since $\lvert K \rvert=1$ then OI=OJ=OK.
\begin{tikzpicture}[scale=.75]
\tkzDefPoints{0/0/A,6/0/B}
\tkzDefMidPoint(A,B)
- \tkzGetPoint{I}
- \tkzDefPointWith[orthogonal,K=-.75](B,A)
+ \tkzGetPoint{I}
+ \tkzDefPointWith[orthogonal,K=-.75](B,A)
\tkzGetPoint{C}
\tkzInterLC(B,C)(B,I)
- \tkzGetPoints{D}{F}
+ \tkzGetPoints{D}{F}
\tkzDuplicateSegment(B,F)(A,F)
\tkzGetPoint{E}
\tkzDrawArc[delta=10](F,E)(B)
\tkzInterLC(A,B)(A,E)
- \tkzGetPoints{N}{M}
+ \tkzGetPoints{N}{M}
\tkzDrawArc[delta=10](A,M)(E)
\tkzDrawLines(A,B B,C A,F)
\tkzCompass(B,F)
@@ -150,26 +172,25 @@ OK=OI since $\lvert K \rvert=1$ then OI=OJ=OK.
\subsubsection{Options \tkzname{colinear} and \tkzname{orthogonal}}
\begin{tkzexample}[latex=7cm,small]
\begin{tikzpicture}[scale=1.2,
- vect/.style={->,shorten >=3pt,>=latex'}]
- \tkzDefPoint(2,1){A}
- \tkzDefPoint(6,2){B}
- \tkzDefPointWith[orthogonal,K=.5](A,B)
- \tkzGetPoint{C}
- \tkzDefPointWith[colinear=at C,K=.5](A,B)
- \tkzGetPoint{D}
- \tkzMarkRightAngle[fill=gray!20](B,A,C)
- \tkzDrawSegments[vect](A,B A,C C,D)
- \tkzDrawPoints(A,...,D)
+ vect/.style={->,shorten >=1pt,>=latex'}]
+ \tkzDefPoints{2/1/A,6/2/B}
+ \tkzDefPointWith[orthogonal,K=.5](A,B)
+ \tkzGetPoint{C}
+ \tkzDefPointWith[colinear=at C,K=.5](A,B)
+ \tkzGetPoint{D}
+ \tkzMarkRightAngle[fill=gray!20](B,A,C)
+ \tkzDrawSegments[vect](A,B A,C C,D)
+ \tkzDrawPoints(A,...,D)
\end{tikzpicture}
\end{tkzexample}
-\subsubsection{Option \tkzname{orthogonal normed}, $K=1$}
-$AC=1$.
+\subsubsection{Option \tkzname{orthogonal normed}}
+ $K=1$ $AC=1$.
\begin{tkzexample}[latex=7cm,small]
\begin{tikzpicture}[scale=1.2,
- vect/.style={->,shorten >=3pt,>=latex'}]
- \tkzDefPoint(2,3){A} \tkzDefPoint(4,2){B}
+ vect/.style={->,shorten >=1pt,>=latex'}]
+ \tkzDefPoints{2/3/A,4/2/B}
\tkzDefPointWith[orthogonal normed](A,B)
\tkzGetPoint{C}
\tkzDrawPoints[color=red](A,B,C)
@@ -178,36 +199,36 @@ $AC=1$.
\end{tikzpicture}
\end{tkzexample}
-\subsubsection{Option \tkzname{orthogonal normed} and $K=2$}
+\subsubsection{Option \tkzname{orthogonal normed} and K=2}
$K=2$ therefore $AC=2$.
\begin{tkzexample}[latex=7cm,small]
\begin{tikzpicture}[scale=1.2,
- vect/.style={->,shorten >=3pt,>=latex'}]
- \tkzDefPoint(2,3){A} \tkzDefPoint(5,1){B}
- \tkzDefPointWith[orthogonal normed,K=2](A,B)
- \tkzGetPoint{C}
- \tkzDrawPoints[color=red](A,B,C)
- \tkzDrawCircle[R](A,2cm)
- \tkzDrawSegments[vect](A,B A,C)
- \tkzMarkRightAngle[fill=gray!20](B,A,C)
- \tkzLabelPoints[above=3pt](A,B,C)
+ vect/.style={->,shorten >=1pt,>=latex'}]
+ \tkzDefPoints{2/3/A,5/1/B}
+ \tkzDefPointWith[orthogonal normed,K=2](A,B)
+ \tkzGetPoint{C}
+ \tkzDrawPoints[color=red](A,B,C)
+ \tkzDrawCircle[R](A,2)
+ \tkzDrawSegments[vect](A,B A,C)
+ \tkzMarkRightAngle[fill=gray!20](B,A,C)
+ \tkzLabelPoints[above=3pt](A,B,C)
\end{tikzpicture}
\end{tkzexample}
\subsubsection{Option \tkzname{linear}}
Here $K=0.5$.
-
+
This amounts to applying a homothety or a multiplication of a vector by a real. Here is the middle of $[AB]$.
\begin{tkzexample}[latex=7cm,small]
\begin{tikzpicture}[scale=1.2]
- \tkzDefPoint(1,3){A} \tkzDefPoint(4,2){B}
- \tkzDefPointWith[linear,K=0.5](A,B)
- \tkzGetPoint{C}
- \tkzDrawPoints[color=red](A,B,C)
- \tkzDrawSegment(A,B)
- \tkzLabelPoints[above right=3pt](A,B,C)
+ \tkzDefPoints{1/3/A,4/2/B}
+ \tkzDefPointWith[linear,K=0.5](A,B)
+ \tkzGetPoint{C}
+ \tkzDrawPoints[color=red](A,B,C)
+ \tkzDrawSegment(A,B)
+ \tkzLabelPoints[above right=3pt](A,B,C)
\end{tikzpicture}
\end{tkzexample}
@@ -216,7 +237,7 @@ In the following example $AC=1$ and $C$ belongs to $(AB)$.
\begin{tkzexample}[latex=7cm,small]
\begin{tikzpicture}[scale=1.2]
- \tkzDefPoint(1,3){A} \tkzDefPoint(4,2){B}
+ \tkzDefPoints{1/3/A,4/2/B}
\tkzDefPointWith[linear normed](A,B)
\tkzGetPoint{C}
\tkzDrawPoints[color=red](A,B,C)
@@ -225,15 +246,10 @@ In the following example $AC=1$ and $C$ belongs to $(AB)$.
\tkzLabelPoints[above right=3pt](A,B,C)
\end{tikzpicture}
\end{tkzexample}
-
-
-
%<--------------------------------------------------------------------------–>
-% tkzGetVectxy
+% tkzGetVectxy
%<--------------------------------------------------------------------------–>
-
-
-\subsection{\tkzcname{tkzGetVectxy} }
+\subsection{\tkzcname{tkzGetVectxy} }
Retrieving the coordinates of a vector.
\begin{NewMacroBox}{tkzGetVectxy}{\parg{$A,B$}\var{text}}%
@@ -254,9 +270,7 @@ arguments & example & explication \\
\begin{tkzexample}[latex=7cm,small]
\begin{tikzpicture}
- \tkzDefPoint(0,0){O}
- \tkzDefPoint(1,1){A}
- \tkzDefPoint(4,2){B}
+ \tkzDefPoints{0/0/O,1/1/A,4/2/B}
\tkzGetVectxy(A,B){v}
\tkzDefPoint(\vx,\vy){V}
\tkzDrawSegment[->,color=red](O,V)
@@ -265,7 +279,4 @@ arguments & example & explication \\
\tkzLabelPoints(A,B,O,V)
\end{tikzpicture}
\end{tkzexample}
-
-
-
-\endinput \ No newline at end of file
+\endinput \ No newline at end of file