Debian Codegraph @

texmf-dist/doc/latex/visualpstricks/Source/geom2.tex

raw
1 \SbSbSSCT{Symétrie par rapport à un point}{Central symmetry}
2
3 \psset{unit=.7cm}
4 \begin{tabular}{|c|c|c|} \hline
5 %\multicolumn{3}{|c|}{ \BSS{pstSymO}[linecolor=red]\AC{A}\AC{B} }\\ \hline
6 \begin{pspicture}(-.5,-.5)(5,4.3)
7 \psaxes[xticksize=4,yticksize=5,axesstyle=frame](5,4)
8 \pstGeonode(2,2){A}(3,1){B} %(3,3){C}
9 \pstSymO[linecolor=red]{A}{B}
10 %\psline[linestyle=dotted](B)(B')
11 %\psline[linestyle=dashed](A)(B)
12 \end{pspicture}
13 &
14 \begin{pspicture}(-.5,-.5)(5,4.3)
15 \psaxes[xticksize=4,yticksize=5,axesstyle=frame](5,4)
16 \pstGeonode(2,2){A}(3,1){B} %(3,3){C}
17 \pstSymO[linecolor=Vert]{A}{B}[D]
18 %\psline[linestyle=dashed](A)(B)
19 %\psline[linestyle=dotted](B)(D)
20 \end{pspicture}
21 &
22 \begin{pspicture}(-.5,-.5)(5,4.3)
23 \psaxes[xticksize=4,yticksize=5,axesstyle=frame](5,4)
24 \pstGeonode(2,2){A}(4,1){B}(3,3){C}
25 \pstSymO[linecolor=red]{A}{B,C}[D,E]
26 \end{pspicture}
27 \\ \hline
28
29 \BSS{pstSymO}[linecolor=red] \BSI{pstSymO}{pst-eucl} & \BSS{pstSymO}[linecolor=Vert]
30 &\BSS{pstSymO}[linecolor=red] \\
31 \AC{A}\AC{B} & \AC{A}\AC{B}[D] & \AC{A}\AC{B,C}[D,E]
32 \\ \hline
33 \end{tabular}
34
35 \bigskip
36 \begin{tabular}{|c|c|c|} \hline
37 \begin{pspicture}(-.5,-.5)(5,4.3)
38 \psaxes[xticksize=4,yticksize=5,axesstyle=frame](5,4)
39 \pstGeonode(2,2){A}(4,1){B}(3,3){C}
40 \pstSymO[CodeFig=true]{A}{B,C}[D,E]
41 \end{pspicture}
42 &
43 \begin{pspicture}(-.5,-.5)(5,4.3)
44 \psaxes[xticksize=4,yticksize=5,axesstyle=frame](5,4)
45 \pstGeonode(2,2){A}(4,1){B}(3,3){C}
46 \pstSymO[CodeFig=true,CodeFigColor=red]{A}{B,C}[D,E]
47 \end{pspicture}
48 \\ \hline
49 \BS{pstSymO}[\RDD{CodeFig}=true] & \BS{pstSymO}[CodeFig=true,\RDD{CodeFigColor}=red] \\
50 \AC{A}\AC{B,C}[D,E] \RDI{CodeFig}{pst-eucl} & \AC{A}\AC{B,C}[D,E] \RDI{CodeFigColor}{pst-eucl}
51 \\ \hline
52 \dft : CodeFig = false & \dft : CodeFigColor = cyan
53 \\ \hline
54
55
56
57 \begin{pspicture}(-.5,-.5)(5,4.3)
58 \psaxes[xticksize=4,yticksize=5,axesstyle=frame](5,4)
59 \pstGeonode(2,2){A}(4,1){B}(3,3){C}
60 \pstSymO[CodeFig=true,CodeFigStyle=dotted,CodeFigColor=red]{A}{B,C}[D,E]
61 \end{pspicture}
62 &
63 \begin{pspicture}(-.5,-.5)(5,4.3)
64 \psaxes[xticksize=4,yticksize=5,axesstyle=frame](5,4)
65 \pstGeonode(2,2){A}(4,1){B}(3,3){C}
66 \pstSymO[CodeFig=true,CodeFigStyle=solid,CodeFigColor=red]{A}{B,C}[D,E]
67 \end{pspicture}
68 \\ \hline
69 \BS{pstSymO}[CodeFig=true,\RDD{CodeFigStyle}=dotted] & \BS{pstSymO}[CodeFig=true,\RDD{CodeFigStyle}=solid] \\
70 \AC{A}\AC{B,C}[D,E] \RDI{CodeFigStyle}{pst-eucl} & \AC{A}\AC{B,C}[D,E]
71 \\ \hline
72 \dft : CodeFigStyle = dashed &
73 \\ \hline
74
75
76 \end{tabular}
77
78 Autres options possibles : PointSymbol PosAngle PointName PointNameSep PtNameMath
79
80
81 % <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
82
83 \SbSbSSCT{Symétrie par rapport à une droite}{Orthogonal symmetry}
84
85 \begin{tabular}{|c|c|} \hline
86 \multicolumn{2}{|c|}{ \BSS{pstOrtSym}[options]\AC{A}\AC{B}\AC{C} \BSI{pstOrtSym}{pst-eucl} }\\ \hline
87 \begin{pspicture}(-.5,-.5)(5,5.3)
88 \psaxes[ticksize=5,axesstyle=frame](5,5)
89 \pstGeonode(1,1){A}(4,1){C}(3,3){B}
90 \pstOrtSym [linecolor=red]{A}{B}{C}
91 \psline[linestyle=dashed](B)(A)
92 \psline[linestyle=dotted](C)(C')
93 \end{pspicture}
94 &
95 \begin{pspicture}(-.5,-.5)(5,5.3)
96 \psaxes[ticksize=5,axesstyle=frame](5,5)
97 \pstGeonode(1,1){A}(4,1){C}(3,3){B}
98 \pstOrtSym [CodeFig=true,CodeFigColor=red]{A}{B}{C} % <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
99 \psline[linestyle=dashed](B)(A)
100 \end{pspicture}
101 \\ \hline
102 [linecolor=red] & [CodeFig=true,\RDD{CodeFigColor}=red] \RDI{CodeFigColor}{pst-eucl} \\ \hline
103 & {\blue \dft : CodeFigColor=cyan } \\ \hline
104 \end{tabular}
105
106
107 %%--------------------------------------------------
108 \subsubsection{Rotation}
109
110 \begin{tabular}{|c|c|c|} \hline
111 \begin{pspicture}(-.5,-.5)(5,4.3)
112 \psaxes[xticksize=4,yticksize=5,axesstyle=frame](5,4)
113 \pstGeonode(2,2){A}(4,1){B} %(1,3){C}
114 \pstRotation[linecolor=red,CodeFig=true]{A}{B}
115 %\pstRotation[linecolor=Vert]{A}{C}[D]
116 \psline[linestyle=dotted](A)(B')
117 \psline(A)(B)
118 \end{pspicture}
119 &
120 \begin{pspicture}(-.5,-.5)(5,4.3)
121 \psaxes[xticksize=4,yticksize=5,axesstyle=frame](5,4)
122 \pstGeonode(1,3){A}(2,1){B} %(1,3){C}
123 \pstRotation[linecolor=red,RotAngle=45,CodeFig=true]{A}{B}[D]
124 \psline(B)(A)
125 \psline[linestyle=dotted](A)(D)
126 \end{pspicture}
127 &
128 \begin{pspicture}(-.5,-.5)(5,4.3)
129 \psaxes[xticksize=4,yticksize=5,axesstyle=frame](5,4)
130 \pstGeonode(2,2){A}(4,1){B}(1,3){C}
131 \pstRotation[linecolor=red,RotAngle=45,CodeFig=true]{A}{B,C}[D,E]
132 \psline (B)(A) (C) %(D)
133 %\psline[linestyle=dashed](C)(A) %(E)
134 \psline[linestyle=dotted](A)(D)
135 \psline[linestyle=dotted](A)(E)
136 \end{pspicture}
137 \\ \hline
138 \BSS{pstRotation}[linecolor=red] & \textbf{\BS{pstRotation}}[\RDD{RotAngle}=45] & \textbf{\BS{pstRotation}}[\RDD{RotAngle}=45] \RDI{RotAngle}{pst-eucl} \\
139 \AC{A}\AC{B} \BSI{pstRotation}{pst-eucl} & \AC{A}\AC{C}[D] \RDI{RotAngle}{pst-eucl}& \AC{A}\AC{B,C}[D,E] \\\hline
140 & \multicolumn{2}{|c|} {\blue \dft : RotAngle=60 }\\
141 \hline
142 \end{tabular}
143
144
145
146
147 \bigskip
148 \begin{tabular}{|c|c|c|} \hline
149 \multicolumn{2}{|c|} {\BS{pstRotation}[CodeFig=true,CodeFigColor=red,\RDD{TransformLabel}=\BS{alpha}]\AC{A}\AC{B} \RDI{TransformLabel}{pst-eucl} }
150 \\ \hline
151 \begin{pspicture}(-.5,-.5)(5,4.3)
152 \psaxes[xticksize=4,yticksize=5,axesstyle=frame](5,4)
153 \pstGeonode(2,2){A}(4,1){B}
154 \pstRotation[CodeFig=true,CodeFigColor=red,TransformLabel=\alpha]{A}{B} %<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
155 \psline[linestyle=dashed](B)(A)
156 \end{pspicture}
157 &
158 \begin{pspicture}(-.5,-.5)(5,4.3)
159 \psaxes[xticksize=4,yticksize=5,axesstyle=frame](5,4)
160 \pstGeonode(2,2){A}(4,1){B}
161 \pstRotation[CodeFig=true,CodeFigColor=red,TransformLabel=\frac{\pi}{3}]{A}{B}[C]
162 \psline[linestyle=dashed](B)(A)
163 \end{pspicture}
164 \\ \hline
165 \RDD{TransformLabel}=\BS{alpha} \RDI{TransformLabel}{pst-eucl} & \RDD{TransformLabel}=\BS{frac}\AC{\BS{pi}}\AC{3} \RDI{TransformLabel}{pst-eucl} \\ \hline
166 \end{tabular}
167
168
169
170 \bigskip
171 %%
172 %%%>>>>>>>>>>>>>>>>>>> \BS{pstAngleAOB} incompatible avec pst-3dplot <<<<<<<<<<<<<<<<<<<<<<<
173 %%
174
175
176 \begin{tabular}{|c|c|c|} \hline
177 \multicolumn{3}{|c|} {\BS{pstRotation}[CodeFig=true,RotAngle=\RDD{pstAngleAOB}\AC{C}\AC{A}\AC{B}] \AC{A}\AC{B} \AC{D} \RDI{pstAngleAOB}{pst-eucl} }
178 \\ \hline
179 \parbox{4cm}{
180 \begin{pspicture}(-.5,-.5)(5,5.3)
181 \psaxes[xticksize=5,yticksize=5,axesstyle=frame](5,5)
182 \pstGeonode(3,3){A}(1,1){B} (1,3){C}
183 \pstRotation[linecolor=red,RotAngle=\pstAngleAOB{C}{A}{B},CodeFig=true]{A}{B}[D]
184 \psline(B)(A)
185 %\rput (2,-1){\framebox{Rotation = \makebox[1cm][l]{\psPrintValue[decimals=2]{\pstAngleAOB{C}{A}{B}}}}}
186 %\rput (2,-1){Rotation = \psPrintValue[decimals=2] {\pstAngleAOB{C}{A}{B}}}
187 \psline[linestyle=dotted](A)(D)
188 \end{pspicture} \\
189 Rotation = \psPrintValue[decimals=2]{\pstAngleAOB{C}{A}{B}}}
190 &
191 \parbox{4cm}{
192 \begin{pspicture}(-.5,-.5)(5,5.3)
193 \psaxes[xticksize=5,yticksize=5,axesstyle=frame](5,5)
194 \pstGeonode(1,2){A}(4,1){B}(3,3){C}
195 \pstRotation[linecolor=red,RotAngle=\pstAngleAOB{C}{B}{A},CodeFig=true]{A}{B,C}[D,E]
196 %\rput* (2,-1){\framebox{Rotation = \makebox[1cm][l]{\psPrintValue[decimals=2]{\pstAngleAOB{C}{B}{A}}}}}
197 %\rput (2,-1){Rotation = \psPrintValue[decimals=2] {\pstAngleAOB{C}{B}{A}}}
198 \psline (B)(A) (C) %(D)
199 \psline[linestyle=dashed](C)(A) %(E)
200 \psline[linestyle=dotted](A)(D)
201 \psline[linestyle=dotted](A)(E)
202 \end{pspicture}\\
203 Rotation = \psPrintValue[decimals=2]{\pstAngleAOB{C}{B}{A}}}
204 &
205 \parbox{4cm}{
206 \begin{pspicture}(-.5,-.5)(5,5.3)
207 \psaxes[xticksize=5,yticksize=5,axesstyle=frame](5,5)
208 \pstGeonode(2,2){A}(4,1){B}(3,3){C}
209 \pstRotation[linecolor=red,AngleCoef=3,RotAngle=\pstAngleAOB{C}{B}{A},CodeFig=true]{A}{B,C}[D,E]
210 %\psline (B)(A) (C) %(D)
211
212 %\rput (2,-1){\framebox{Rotation = \makebox[1cm][l]{\psPrintValue[decimals=2] { \pstAngleAOB{C}{B}{A} 3 mul}}}}
213 %\psline[linestyle=dashed](C)(A) %(E)
214 %\psline[linestyle=dotted](A)(D)
215 %\psline[linestyle=dotted](A)(E)
216 \end{pspicture}\\
217 Rotation = \psPrintValue[decimals=2] { \pstAngleAOB{C}{B}{A} 3 mul}}
218 \\ \hline
219
220 \end{tabular}
221 %<<<<<<<<
222 %\bigskip
223 %%
224 %%%\begin{pspicture}(-.5,-.5)(5,4.3)
225 %%%\psaxes[xticksize=4,yticksize=5,axesstyle=frame](5,4)
226 %%%\pstGeonode(3,2){A}(3,3){B}(1,2){C}
227 %%%\pstRotation[RotAngle=45, CodeFig=true]{A}{D}[E]
228 %%%%\pstRotation[RotAngle=\pstAngleAOB{C}{A}{B}, CodeFig=true]{A}{D}[E]
229 %%%%\pstRotation[ RotAngle=\pstAngleAOB{B}{A}{C} ,CodeFigColor=red, CodeFig=true]{A}{B}[C]
230 %%%%\pstRotation[CodeFig=true,CodeFigColor=red,TransformLabel=\alpha]{A}{B}
231 %%%%\pstRotation[linecolor=Vert,RotAngle=\pstAngleAOB{B}{A}{C}]{A}{C}[D]
232 %%%
233 %%%\end{pspicture}
234 %%
235 %%%\begin{tabular}{|c|c|} \hline
236 %%%\begin{pspicture}(-.5,-.5)(5,4.3)
237 %%%\psaxes[xticksize=4,yticksize=5,axesstyle=frame](5,4)
238 %%%\pstGeonode(3,2){A}(3,3){B}(1,3){C}
239 %%%\pstRotation[RotAngle=\pstAngleAOB{B}{A}{C}]{A}{D}[E] %<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
240 %%%\pstRotation[AngleCoef=.5, RotAngle=\pstAngleAOB{B}{A}{C},CodeFigColor=red, CodeFig=true]{A}{B}[C]
241 %%%\pstRotation[CodeFig=true,CodeFigColor=red,TransformLabel=\alpha]{A}{B}
242 %%%\pstRotation[linecolor=Vert,RotAngle=\pstAngleAOB{B}{A}{C}]{A}{C}[D]
243 %%%
244 %%%\end{pspicture}
245 %%%&
246 %%%\begin{pspicture}(-.5,-.5)(4,4.3)
247 %%%\psaxes[ticksize=4,axesstyle=frame](4,4)
248 %%%\pstGeonode(3,2){A}(3,3){B} %(1,3){C}
249 %%%\pstRotation[CodeFig=true,CodeFigColor=red,TransformLabel=\alpha]{A}{B}
250 %%%\pstRotation[RotAngle=\pstAngleAOB{B}{A}{C},CodeFig=true,CodeFigColor=red,TransformLabel=\widehat{BAC}]{A}{C}[D]
251 %%%\psline[linestyle=dashed](B)(A)(B')
252 %%%\psline[linestyle=dashed](C)(A)(D)
253 %%%\end{pspicture}
254 %%%\\ \hline
255 %%%RotAngle=\textbf{\BS{}pstAngleAOB}\AC{B}\AC{A}\AC{C} & {\red TransformLabel}=\BS{widehat}\AC{BAC}
256 %%%\\ \hline
257 %%%\end{tabular}
258 %%
259 %%
260 %%%------------------------------------------------------
261 \subsubsection{Translation}
262
263 \begin{tabular}{|c|c|c|} \hline
264 \BSS{pstTranslation}[options]\AC{B}\AC{A}\AC{C} \BSI{pstTranslation}{pst-eucl} &
265 \multicolumn{2}{|c|}{ \BSS{pstTranslation}[options]\AC{A}\AC{B}\AC{C} \BSI{pstTranslation}{pst-eucl} }\\ \hline
266 \begin{pspicture}(-.5,-.5)(5,4.3)
267 \psaxes[xticksize=4,yticksize=5,axesstyle=frame](5,4)
268 \pstGeonode(1,2){A}(3,1){B}(3,2){C}
269 \pstTranslation[linecolor=red]{B}{A}{C}
270 \psline[linestyle=dashed](B)(A)
271 \psline[linestyle=dashed](C)(C')
272 \end{pspicture}
273 &
274 \begin{pspicture}(-.5,-.5)(5,4.3)
275 \psaxes[xticksize=4,yticksize=5,axesstyle=frame](5,4)
276 \pstGeonode(1,2){A}(3,1){B}(3,2){C}
277 \pstTranslation[linecolor=red,DistCoef=.5]{A}{B}{C}
278 \psline[linestyle=dashed](B)(A)
279 \psline[linestyle=dashed](C)(C')
280 \end{pspicture}
281 &
282 \begin{pspicture}(-.5,-.5)(6,4.3)
283 \psaxes[xticksize=4,yticksize=6,axesstyle=frame](6,4)
284 \pstGeonode(1,2){A}(3,1){B}(3,2){C}
285 \pstTranslation[CodeFig=true]{A}{B}{C}
286 \psline[linestyle=dashed](B)(A)
287 %\psline[linestyle=dashed](C)(C')
288 \end{pspicture}
289 \\ \hline
290 & [\RDD{DistCoef}=0.5] \RDI{DistCoef}{pst-eucl} & [\RDD{CodeFig}=true] \RDI{CodeFig}{pst-eucl}
291 \\ \hline
292
293 \end{tabular}
294
295
296 %
297 %%--------------------------------------------------------------------------
298 \SbSbSSCT{Homothétie}{Homothetie}
299
300 \begin{tabular}{|c|c|c|} \hline
301 \multicolumn{2}{|c|}{ \BSS{pstHomO}\AC{A}\AC{B,C}[D,E] \BSI{pstHomO}{pst-eucl} }\\ \hline
302 \begin{pspicture}(-.5,-.5)(5,4.3)
303 \psaxes[xticksize=4,yticksize=5,axesstyle=frame](5,4)
304 \pstGeonode(0,2){A}(4,1){B}(4,3){C}
305 \pstLineAB[nodesepB=-1,linestyle=dashed]{A}{B}
306 \pstLineAB[nodesepB=-1,linestyle=dashed]{A}{C}
307 \pstHomO[linecolor=red]{A}{B,C}[D,E]
308 \end{pspicture}
309 &
310 \begin{pspicture}(-.5,-.5)(5,4.3)
311 \psaxes[xticksize=4,yticksize=5,axesstyle=frame](5,4)
312 \pstGeonode(0,2){A}(4,1){B}(4,3){C}
313 \pstLineAB[nodesepB=-1,linestyle=dashed]{A}{B}
314 \pstLineAB[nodesepB=-1,linestyle=dashed]{A}{C}
315 \pstHomO[linecolor=red,HomCoef=.75]{A}{B,C}[D,E]
316 \end{pspicture}
317
318
319 \\ \hline
320 &
321 [\RDD{HomCoef}=.75] \RDI{HomCoef}{pst-eucl}
322 \\ \hline
323 \end{tabular}
324
325
326
327 %%-------------------------------------------------------------
328 \SbSbSSCT{Projection orthogonale}{Orthogonal projection}
329
330 \begin{tabular}{|c|} \hline
331 \begin{pspicture}(-.5,-.5)(5,5.3)
332 \psaxes[ticksize=5,axesstyle=frame](5,5)
333 \pstTriangle(1,3){A}(3,1){B}(4,4){C}
334 \pstProjection[CodeFig=true, CodeFigColor=red]{A}{B}{C}[D]
335 \end{pspicture}
336 \\ \hline
337 \BSS{pstProjection}[CodeFig=true,CodeFigColor=red]\AC{A}\AC{B}\AC{C}[D] \BSI{pstProjection}{pst-eucl}
338 \\ \hline
339 \end{tabular}