summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-show.tex
blob: 0d45ff22309742a86f1109ed5485ff9773552cd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
\section{The Show}

\subsection{Montrer les constructions de certaines  lignes \tkzcname{tkzShowLine}}

 \begin{NewMacroBox}{tkzShowLine}{\oarg{local options}\parg{pt1,pt2} ou \parg{pt1,pt2,pt3}}
Ces constructions concernent les médiatrices, les droites perpendiculaires ou parallèles passant par un point donné et les bissectrices. Les arguments sont donc des listes de deux ou bien de trois points. Plusieurs options permettent l'ajustement des constructions. L'idée de cette macro revient à \tkzimp{Yves Combe}
  

\medskip 
\begin{tabular}{lll}
\toprule
options             & default & definition                        \\ 
\midrule
\TOline{mediator}{mediator}{affiche les constructions d'une médiatrice} 
\TOline{perpendicular}{mediator}{constructions pour une perpendiculaire} 
\TOline{orthogonal}{mediator}{idem}
\TOline{bisector}{mediator}{constructions pour une bissectrice}
\TOline{K}{1}{cercle inscrit dans à un triangle }
\TOline{length}{1}{ en cm, longueur d'un arc}
\TOline{ratio} {.5}{rapport entre les longueurs des arcs}
\TOline{gap}{2}{placement le point de construction}
\TOline{size}{1}{rayon d'un arc (voir bissectrice)}
 \bottomrule
\end{tabular}

Il faut ajouter bien sûr tous les styles de \TIKZ\ pour les tracés
\end{NewMacroBox}

\subsubsection{Exemple de \tkzcname{tkzShowLine} et \tkzname{parallel}} 

\begin{tkzexample}[latex=7cm,small]
\begin{tikzpicture}
 \tkzDefPoints{-1.5/-0.25/A,1/-0.75/B,-1.5/2/C}
 \tkzDrawLine(A,B)
 \tkzDefLine[parallel=through C](A,B) \tkzGetPoint{c} 
 \tkzShowLine[parallel=through C](A,B)
 \tkzDrawLine(C,c) \tkzDrawPoints(A,B,C,c)
\end{tikzpicture}
\end{tkzexample}

\subsubsection{Exemple de \tkzcname{tkzShowLine} et \tkzname{perpendicular}} 

\begin{tkzexample}[latex=5cm,small]
\begin{tikzpicture}
\tkzDefPoints{0/0/A, 3/2/B, 2/2/C} 
\tkzDefLine[perpendicular=through C,K=-.5](A,B) \tkzGetPoint{c}
\tkzShowLine[perpendicular=through C,K=-.5,gap=3](A,B)
\tkzDefPointBy[projection=onto A--B](c)\tkzGetPoint{h} 
\tkzMarkRightAngle[fill=lightgray](A,h,C) 
\tkzDrawLines[add=1 and 1](A,B C,c) 
\tkzDrawPoints(A,B,C,h,c)
\end{tikzpicture}
\end{tkzexample}

\subsubsection{Exemple de \tkzcname{tkzShowLine} et \tkzname{bisector}} 

\begin{tkzexample}[latex=7 cm,small]
\begin{tikzpicture}[scale=1.25]
 \tkzDefPoints{0/0/A, 4/2/B, 1/4/C}
 \tkzDrawPolygon(A,B,C) 
 \tkzSetUpCompass[color=brown,line width=.1 pt]
 \tkzDefLine[bisector](B,A,C)  \tkzGetPoint{a}
 \tkzDefLine[bisector](C,B,A)  \tkzGetPoint{b}
 \tkzInterLL(A,a)(B,b) \tkzGetPoint{I}
 \tkzDefPointBy[projection = onto A--B](I) 
   \tkzGetPoint{H}
 \tkzShowLine[bisector,size=2,gap=3,blue](B,A,C)
 \tkzShowLine[bisector,size=2,gap=3,blue](C,B,A)   
 \tkzDrawCircle[radius,color=blue,%
 line width=.2pt](I,H) 
 \tkzDrawSegments[color=red!50](I,tkzPointResult)
 \tkzDrawLines[add=0 and -0.3,color=red!50](A,a B,b) 
\end{tikzpicture}
\end{tkzexample}

\subsubsection{Exemple de \tkzcname{tkzShowLine} et \tkzname{mediator}} 
\begin{tkzexample}[latex=7 cm,small]
\begin{tikzpicture}
\tkzDefPoint(2,2){A}
\tkzDefPoint(5,4){B}
\tkzDrawPoints(A,B) 
\tkzShowLine[mediator,color=orange,length=1](A,B) 
\tkzGetPoints{i}{j}
\tkzDrawLines[add=-0.1 and -0.1](i,j)
\tkzDrawLines(A,B)
\tkzLabelPoints[below =3pt](A,B)
\end{tikzpicture}
\end{tkzexample}

\subsection{Constructions de certaines  transformations \addbs{tkzShowTransformation}}

 \begin{NewMacroBox}{tkzShowTransformation}{\oarg{local options}\parg{pt1,pt2} ou \parg{pt1,pt2,pt3}}
Ces constructions concernent les symétries  orthogonales, les symétries centrales, les projections orthogonales et les translations. Plusieurs options permettent l'ajustement des constructions. L'idée de cette macro revient à \tkzimp{Yves Combe}
  

\medskip 
\begin{tabular}{lll}
\toprule
options             & default & definition                        \\ 
\midrule
\TOline{reflection= over pt1--pt2}{reflection}{constructions d'une symétrie orthogonale} 
\TOline{symmetry=center pt}{reflection}{constructions d'une symétrie centrale} 
\TOline{projection=onto pt1--pt2}{reflection}{constructions d'une projection}
\TOline{translation=from pt1 to pt2}{reflection}{constructions d'une translation}
\TOline{K}{1}{cercle inscrit dans à un triangle }
\TOline{length}{1}{longueur d'un arc}
\TOline{ratio} {.5}{rapport entre les longueurs des arcs}
\TOline{gap}{2}{placement le point de construction}
\TOline{size}{1}{rayon d'un arc (voir bissectrice)}
\end{tabular}
\end{NewMacroBox}

\subsubsection{Exemple d'utilisation de \tkzcname{tkzShowTransformation}} 


\begin{tkzexample}[latex=6cm,small]
\begin{tikzpicture}[scale=.6]
  \tkzDefPoint(0,0){O} \tkzDefPoint(2,-2){A}
  \tkzDefPoint(70:4){B} \tkzDrawPoints(A,O,B)
  \tkzLabelPoints(A,O,B)
  \tkzDrawLine[add= 2 and 2](O,A)
  \tkzDefPointBy[translation=from O to A](B) 
  \tkzGetPoint{C}
  \tkzDrawPoint[color=orange](C)  \tkzLabelPoints(C)
  \tkzShowTransformation[translation=from O to A,%
             length=2](B) 
  \tkzDrawSegments[->,color=orange](O,A B,C)  
  \tkzDefPointBy[reflection=over O--A](B) \tkzGetPoint{E}
  \tkzDrawSegment[blue](B,E)
  \tkzDrawPoint[color=blue](E)\tkzLabelPoints(E) 
  \tkzShowTransformation[reflection=over O--A,size=2](B)   
  \tkzDefPointBy[symmetry=center O](B) \tkzGetPoint{F} 
  \tkzDrawSegment[color=green](B,F)
  \tkzDrawPoint[color=green](F)\tkzLabelPoints(F)
  \tkzShowTransformation[symmetry=center O,%
                      length=2](B) 
  \tkzDefPointBy[projection=onto O--A](C) 
  \tkzGetPoint{H}    
  \tkzDrawSegments[color=magenta](C,H)
  \tkzDrawPoint[color=magenta](H)\tkzLabelPoints(H)
  \tkzShowTransformation[projection=onto O--A,%
                         color=red,size=3,gap=-2](C)   
\end{tikzpicture}
\end{tkzexample}

\subsubsection{Autre exemple d'utilisation de \tkzcname{tkzShowTransformation}} 

Vous retouverez cette figure, mais sans les traits de construction
\begin{tkzexample}[latex=7cm,small]  
\begin{tikzpicture}[scale=.6]
  \tkzDefPoints{0/0/A,8/0/B,3.5/10/I}
  \tkzDefMidPoint(A,B) \tkzGetPoint{O} 
  \tkzDefPointBy[projection=onto A--B](I) 
     \tkzGetPoint{J}
  \tkzInterLC(I,A)(O,A)  \tkzGetPoints{M'}{M}
  \tkzInterLC(I,B)(O,A)  \tkzGetPoints{N}{N'}    
  \tkzDrawSemiCircle[diameter](A,B)
  \tkzDrawSegments(I,A I,B A,B B,M A,N) 
  \tkzMarkRightAngles(A,M,B A,N,B)  
  \tkzDrawSegment[style=dashed,color=blue](I,J)
  \tkzShowTransformation[projection=onto A--B,
                  color=red,size=3,gap=-3](I)
  \tkzDrawPoints[color=red](M,N)
  \tkzDrawPoints[color=blue](O,A,B,I) 
  \tkzLabelPoints(O)  
  \tkzLabelPoints[above right](N,I) 
  \tkzLabelPoints[below left](M,A) 
\end{tikzpicture} 
\end{tkzexample} 

%<--------------------------------------------------------------------------->
\section{Différents points}
%<--------------------------------------------------------------------------->

\subsection{\tkzcname{tkzDefEquiPoints}}
Cette macro permet d'obtenir deux points d'une droite équidistants d'un point donné.

\begin{NewMacroBox}{tkzDefEquiPoints}{\oarg{local options}\parg{pt1,pt2}}
\begin{tabular}{lll}
arguments &  défaut  & définition \\
\midrule
\TAline{(pt1,pt2)}{no default}{liste non ordonnée de deux points}
\bottomrule
\end{tabular}

\medskip
\begin{tabular}{lll}
\toprule  \\
options             & default & definition  \\
\midrule
\TOline{dist} {2 cm} {moitié de la distance entre les deux points}
\TOline{from=pt} {no default} {point de référence}
\TOline{show} {false} {si true affiche les traces de compas}
\TOline{/compass/delta} {0} {taille des traces de compas }

\end{tabular}
\end{NewMacroBox}


\subsubsection{Utilisation de \tkzcname{tkzDefEquiPoints} avec des options}

\begin{tkzexample}[latex=7cm,small]
\begin{tikzpicture}
  \tkzSetUpCompass[color=purple,line width=1pt]
  \tkzDefPoint(0,1){A}
  \tkzDefPoint(5,2){B}
  \tkzDefPoint(3,4){C}
  \tkzDefEquiPoints[from=C,dist=1,show,
      /tkzcompass/delta=20](A,B)
   \tkzGetPoints{E}{H}
   \tkzDrawLines[color=blue](C,E C,H A,B)
   \tkzDrawPoints[color=blue](A,B,C)
   \tkzDrawPoints[color=red](E,H)
   \tkzLabelPoints(E,H)
   \tkzLabelPoints[color=blue](A,B,C)
\end{tikzpicture}
\end{tkzexample}
\endinput