Debian Codegraph @

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

raw
1
2 \TFRGB{Voir aussi le module de géométrie page}{See also the package of geometry on page} \pageref{geom}
3
4 \SbSSCT{Création de n\oe uds multiples}{Multiples nodes creation}
5
6 \psset{linewidth=1pt,tickcolor=black!10}
7 \psset{unit=1cm,fillcolor=white,fillstyle=none,linecolor=blue}
8
9 \begin{tabular}{|l|l|} \hline
10 \begin{psgraph}[axesstyle=none,xticksize=0 4,yticksize=0 4,subticks=0](0,0)(4,4){3cm}{3cm}
11 \pnodes(3,1){A}(2,3){B} (1,2){C}
12 \psdots[dotstyle=*,linecolor=blue](A) \nput{45}{A}{A}
13 \psdots[dotstyle=*,linecolor=blue](B) \nput{45}{B}{B}
14 \psdots[dotstyle=*,linecolor=blue](C) \nput{135}{C}{C}
15 \psline (A) (B) (C)
16 \end{psgraph}
17 &
18 \begin{psgraph}[axesstyle=none,xticksize=0 4,yticksize=0 4,subticks=0](0,0)(4,4){3cm}{3cm}
19 \pnodes{A} (3,1) (2,3) (1,2)
20 \psdots[dotstyle=*,linecolor=blue](A0) \nput{45}{A0}{A0}
21 \psdots[dotstyle=*,linecolor=blue](A1) \nput{45}{A1}{A1}
22 \psdots[dotstyle=*,linecolor=blue](A2) \nput{135}{A2}{A2}
23 \psline (A0) (A1) (A2)
24 \end{psgraph}
25 \\ \hline
26
27 \BSS{pnodes}(3,1)\AC{A}(2,3)\AC{B} (1,2)\AC{C} \BSI{pnodes}{pst-node}
28 &
29 \BSS{pnodes}\AC{A} (3,1)(2,3) (1,2) \\
30 \BS{psline} (A) (B) (C)
31 &
32 \BS{psline} (A0) (A1) (A2)
33 \\ \hline
34 \end{tabular}
35
36 %-----------------------------------------------------------------------------
37 \SbSSCT{Positionement calculé de n\oe uds}{Node positions calculated }
38
39 \SbSbSSCT{Positions relatives avec psLNode}{Relative position width psLNode}
40
41 \begin{tabular}{|c|c|}\hline
42 \begin{psgraph}[axesstyle=none,xticksize=0 2cm,yticksize=0 6,subticks=0](0,0)(6,2){6cm}{2cm}
43 \pnode(1,1){B}\pnode(5,1){C}
44 \psLNode(B)(C){0.75}{A}
45 \psdots[dotstyle=*,linecolor=red](A) \nput{45}{A}{A}%
46 \psdots[dotstyle=*,linecolor=blue](B) \nput{45}{B}{B}
47 \psdots[dotstyle=*,linecolor=blue](C) \nput{45}{C}{C}%
48 \end{psgraph}
49 &
50 \begin{psgraph}[axesstyle=none,xticksize=0 2cm,yticksize=0 6cm,subticks=0](0,0)(6,2){6cm}{2cm}
51 \pnode(1,1){B}\pnode(5,1){C}
52 \psLNode(B)(C){-0.25}{A}
53 \psdots[dotstyle=*,linecolor=red](A) \nput{45}{A}{A}%
54 \psdots[dotstyle=*,linecolor=blue](B) \nput{45}{B}{B}
55 \psdots[dotstyle=*,linecolor=blue](C) \nput{45}{C}{C}%
56 \end{psgraph}
57 \\ \hline
58 \BSS{psLNode}(B)(C)\AC{{\red 0.75}}\AC{A} \BSI{pslNode}{pst-node}
59 &
60 \BSS{psLNode}(B)(C)\AC{{\red -0.25}}\AC{A}
61 \\ \hline
62 \end{tabular}
63
64 \SbSbSSCT{Positions relatives avec midAB}{Relative position width midAB}
65
66 \begin{tabular}{|c|} \hline
67 \begin{psgraph}[axesstyle=none,xticksize=0 2cm,yticksize=0 6cm,subticks=0](0,0)(6,2){6cm}{2cm}
68 \pnode(1,1){B}\pnode(5,1){C}
69 \midAB(B)(C){A}
70 \psdots[dotstyle=*,linecolor=red](A) \nput{45}{A}{A}%
71 \psdots[dotstyle=*,linecolor=blue](B) \nput{45}{B}{B}
72 \psdots[dotstyle=*,linecolor=blue](C) \nput{45}{C}{C}%
73 \end{psgraph}
74 \\ \hline
75 \BSS{midAB}(B)(C)\AC{A} \BSI{midAB}{pst-node}
76 \\ \hline
77 \end{tabular}
78
79 %-------------------------------
80 \SbSbSSCT{Positions avec psLDNode}{Position width psLDNode}
81
82 \begin{tabular}{|c|} \hline
83 \begin{psgraph}[axesstyle=none,xticksize=0 2cm,yticksize=0 6cm,subticks=0](0,0)(6,2){6cm}{2cm}
84 \pnode(1,1){B}\pnode(5,1){C}
85 \psLDNode(B)(C){1cm}{A}
86 \psdots[dotstyle=*,linecolor=red](A) \nput{45}{A}{A}%
87 \psdots[dotstyle=*,linecolor=blue](B) \nput{45}{B}{B}
88 \psdots[dotstyle=*,linecolor=blue](C) \nput{45}{C}{C}%
89 \end{psgraph}
90 \\ \hline
91 \BSS{psLDNode}(B)(C)\AC{{\red 1cm}}\AC{A} \BSI{psLNDode}{pst-node}
92 \\ \hline
93 \end{tabular}
94
95 %-------------------------------------
96
97 \SbSbSSCT{Positions relatives avec psLCNode}{Relative position width psLCNode}
98
99 \begin{tabular}{|c|c|c|} \hline
100 \begin{psgraph}[axesstyle=none,xticksize=0 5,yticksize=0 5,subticks=0](0,0)(5,5){3cm}{3cm}
101 \psline{-D>}(4,1)
102 \psline{-D>}(1,2)
103 \psLCNode(4,1){1}(1,2){1}{A}
104 \psdots[dotstyle=*,linecolor=red](A) \nput{135}{A}{A}
105 \psline[linestyle=dashed](4,1)(A)
106 \psline[linestyle=dashed](1,2)(A)
107 \end{psgraph}
108 &
109 \begin{psgraph}[axesstyle=none,xticksize=0 5,yticksize=0 5,subticks=0](0,0)(5,5){3cm}{3cm}
110 \psline{-D>}(4,1)
111 \psline{-D>}(1,2)
112 \psLCNode(4,1){.5}(1,2){1}{A}
113 \psdots[dotstyle=*,linecolor=red](A) \nput{135}{A}{A}
114 \psline[linestyle=dashed](2,.5)(A)
115 \psline[linestyle=dashed](1,2)(A)
116 \end{psgraph}
117 &
118 \begin{psgraph}[axesstyle=none,xticksize=0 5,yticksize=0 6,subticks=0](0,0)(6,5){3cm}{3cm}
119 \psline[linestyle=dashed](1.5,3)
120 \psline{-D>}(4,1)
121 \psline{-D>}(1,2)
122 \psLCNode(4,1){1}(1,2){1.5}{A}
123 \psdots[dotstyle=*,linecolor=red](A) \nput{135}{A}{A}
124 \psline[linestyle=dashed](4,1)(A)
125 \psline[linestyle=dashed](1.5,3)(A)
126 \end{psgraph}
127 \\ \hline
128 \BSS{psLCNode}(4,1){\red \AC{1}}(1,2){\red \AC{1}}\AC{A} \BSI{psLCNode}{pst-node} &
129 \BSS{psLCNode}(4,1){\red \AC{.5}}(1,2){\red \AC{1}}\AC{A} &
130 \BSS{psLCNode}(4,1){\red \AC{1}}(1,2){\red \AC{1.5}}\AC{A} \\
131 \hline
132 \end{tabular}
133
134 %-----------------------------------
135
136 \SbSbSSCT{Positions relatives avec psLCNodeVar}{Relative position width psLCNodeVar}
137
138 \begin{tabular}{|c|c|} \hline
139 \begin{psgraph}[axesstyle=none,xticksize=0 5,yticksize=0 4,subticks=0](0,0)(5,4){3cm}{3cm}
140 \psline{-D>}(4,1)
141 \psline{-D>}(1,2)
142 \psLCNodeVar(4,1)(1,2)(1,1){A}
143 \psdots[dotstyle=*,linecolor=red](A) \nput{135}{A}{A}
144 \psline[linestyle=dashed](4,1)(A)
145 \psline[linestyle=dashed](1,2)(A)
146 \end{psgraph}
147 &
148 \begin{psgraph}[axesstyle=none,xticksize=0 4,yticksize=0 5,subticks=0](0,0)(5,4){3cm}{3cm}
149 \psline{-D>}(4,1)
150 \psline{-D>}(1,2)
151 \psLCNodeVar(4,1)(1,2)(0.5,1){A}
152 \psdots[dotstyle=*,linecolor=red](A) \nput{135}{A}{A}
153 \psline[linestyle=dashed](2,.5)(A)
154 \psline[linestyle=dashed](1,2)(A)
155 \end{psgraph}
156 \\ \hline
157 \BSS{psLCNodeVar}(4,1)(1,2)({\red 1,1})\AC{A} \BSI{psLCNodeVar}{pst-node} &
158 \BSS{psLCNodeVar}(4,1)(1,2)({\red 0.5,1})\AC{A}
159 \\ \hline
160 \end{tabular}
161
162 %----------------------------------
163
164 \SbSbSSCT{Positions relatives avec rhombus}{Relative position width rhombus}
165
166 \begin{tabular}{|c|c|} \hline
167 \begin{psgraph}[axesstyle=none,xticksize=0 6,yticksize=0 6,subticks=0](0,0)(6,6){3cm}{3cm}
168 \pnodes(5,2){A}(2,4){B}
169 \uput[-135](B){B}
170 \uput[-45](A){A}
171 \psdots[dotstyle=*,linecolor=blue](B)
172 \psdots[dotstyle=*,linecolor=blue](A)
173 \rhombus{2}(A)(B){C}{D}
174 \psdots[dotstyle=*,linecolor=red](C)
175 \psdots[dotstyle=*,linecolor=red](D)
176 \uput[45](C){C}
177 \uput[45](D){D}
178 \psline[linestyle=dotted ](A)(B)
179 \psline[linestyle=dotted ](A)(C)
180 \psline[linestyle=dotted ](A)(D)
181 \psline[linestyle=dotted ](B)(C)
182 \psline[linestyle=dotted ](B)(D)
183 \psarc[linestyle=dashed,linewidth=1pt](A){2}{80}{210}
184 \end{psgraph}
185 &
186 \begin{psgraph}[axesstyle=none,xticksize=0 6,yticksize=0 6,subticks=0](0,0)(6,6){3cm}{3cm}
187 \pnodes(5,2){A}(2,4){B}
188 \uput[-135](B){B}
189 \uput[-45](A){A}
190 \psdots[dotstyle=*,linecolor=blue](B)
191 \psdots[dotstyle=*,linecolor=blue](A)
192 \rhombus{3}(A)(B){X}{Y}
193 \psdots[dotstyle=*,linecolor=red](X)
194 \psdots[dotstyle=*,linecolor=red](Y)
195 \psline[linestyle=dotted ](A)(B)
196 \psline[linestyle=dotted ](A)(X)
197 \psline[linestyle=dotted ](A)(Y)
198 \psline[linestyle=dotted ](B)(X)
199 \psline[linestyle=dotted ](B)(Y)
200 \uput[45](X){X}
201 \uput[45](Y){Y}
202 \psline[linestyle=dotted ](A)(B)
203 \psarc[linestyle=dashed,linewidth=1pt](A){3}{80}{210}
204 \end{psgraph}
205 \\ \hline
206 \BSS{rhombus}\AC{{\red 2}}(A)(B)\AC{C}\AC{D} \BSI{rhombus}{pst-node}
207 &
208 \BSS{rhombus}\AC{{\red 3}}(A)(B)\AC{X}\AC{Y}
209 \\ \hline
210 \end{tabular}
211
212 %-----------------------------------
213
214 \SbSbSSCT{Positions relatives avec psRelNodeVar}{Relative position width psRelNodeVar}
215
216 \begin{tabular}{|c|c|c|} \hline
217 \begin{psgraph}[axesstyle=none,xticksize=0 5,yticksize=0 5,subticks=0](0,0)(5,5){3cm}{3cm}
218 \pnode(0,1){B}
219 \pnode(2,1){C}
220 \psRelNodeVar(B)(C)(1;45){A}
221 \psline(B)(C)
222 \psline[linestyle=dotted](B)(A)
223 \psline[linestyle=dotted](C)(A)
224 \psarc[linestyle=dashed](B){2}{-20}{60}
225 \uput[-45](B){B}
226 \uput[45](A){A}
227 \uput[-45](C){C}
228 \psdots[dotstyle=*,linecolor=blue](B)
229 \psdots[dotstyle=*,linecolor=red](A)
230 \psdots[dotstyle=*,linecolor=blue](C)
231 \end{psgraph}
232 &
233 \begin{psgraph}[axesstyle=none,xticksize=0 5,yticksize=0 5,subticks=0](0,0)(5,5){3cm}{3cm}
234 \pnode(0,1){B}
235 \pnode(2,1){C}
236 \psRelNodeVar(B)(C)(2;45){A}
237 \psline(B)(C)
238 \psline[linestyle=dotted](B)(A)
239 \psarc[linestyle=dashed](B){4}{-20}{60}
240 \uput[-45](B){B}
241 \uput[45](A){A}
242 \uput[-45](C){C}
243 \psdots[dotstyle=*,linecolor=blue](B)
244 \psdots[dotstyle=*,linecolor=red](A)
245 \psdots[dotstyle=*,linecolor=blue](C)
246 \end{psgraph}
247 &
248 \begin{psgraph}[axesstyle=none,xticksize=0 5,yticksize=0 5,subticks=0](0,0)(5,5){3cm}{3cm}
249 \pnode(0,1){B}
250 \pnode(2,1){C}
251 \psRelNodeVar(B)(C)(2;30){A}
252 \psline(B)(C)
253 \psline[linestyle=dotted](B)(A)
254 \psarc[linestyle=dashed](B){4}{-20}{60}
255 \uput[-45](B){B}
256 \uput[45](A){A}
257 \uput[-45](C){C}
258 \psdots[dotstyle=*,linecolor=blue](B)
259 \psdots[dotstyle=*,linecolor=red](A)
260 \psdots[dotstyle=*,linecolor=blue](C)
261 \end{psgraph}
262 \\ \hline
263 \BSS{psRelNodeVar}(B)(C)({\red 1;45})\AC{A} \BSI{psRelNodeVar}{pst-node}
264 &
265 \BSS{psRelNodeVar}(B)(C)({\red 2;45})\AC{A}
266 &
267 \BSS{psRelNodeVar}(B)(C)({\red 2;30})\AC{A}
268 \\ \hline
269 \end{tabular}
270
271 %-----------------------------------
272
273 \SbSbSSCT{Positions relatives avec AplusB}{Relative position width AplusB}
274
275 \begin{tabular}{|c|} \hline
276 \begin{psgraph}[axesstyle=none,xticksize=0 4,yticksize=0 4,subticks=0](0,0)(4,4){3cm}{3cm}
277 \pnode(1,2){B}\pnode(2,1){C}
278 \pnode(0,0){O}
279 \AplusB(B)(C){A}
280 \psdots[dotstyle=*,linecolor=blue](B)
281 \psdots[dotstyle=*,linecolor=blue](C)
282 \psdots[dotstyle=*,linecolor=red](A)
283 \nput{45}{A}{A}%
284 \nput{135}{B}{B}
285 \nput{135}{C}{C}%
286 \ncline {O} {B}
287 \ncline{O} {C}
288 \ncline {O} {B}
289 \ncline[linestyle=dashed]{->} {B} {A}
290 \ncline[linestyle=dashed]{->} {C} {A}
291 \end{psgraph}
292 \\ \hline
293 \BSS{AplusB}(B)(C)\AC{A} \BSI{AplusB}{pst-node}
294 \\ \hline
295 \end{tabular}
296
297 %-----------------------------------
298
299 \SbSbSSCT{Positions relatives avec AtoB}{Relative position width AtoB}
300
301 \begin{tabular}{|c|}\hline
302 \begin{psgraph}[axesstyle=none,xticksize=-2 3,yticksize=-1 3,subticks=0](0,0)(-1,-2)(3,3){4cm}{4cm}
303 \pnode(1,2){B}\pnode(2,1){C}
304 \pnode(0,0){O}
305 \AtoB(B)(C){A}
306 \psdots[dotstyle=*,linecolor=blue](B)
307 \psdots[dotstyle=*,linecolor=blue](C)
308 \psdots[dotstyle=*,linecolor=red](A)
309 \nput{45}{A}{A}%
310 \nput{45}{B}{B}
311 \nput{45}{C}{C}%
312 \ncline {O} {B}
313 \ncline {O} {C}
314 \ncline {O} {B}
315 \ncline[linestyle=dashed]{->} {B} {C}
316 \ncline[linestyle=dashed]{->} {O} {A}
317 \end{psgraph}
318 \\ \hline
319 \BSS{AtoB}(B)(C)\AC{A} \BSI{AtoB}{pst-node}
320 \\ \hline
321 \end{tabular}
322
323
324
325 %==================================================
326
327 \SbSSCT{N\oe ud sur une courbe}{Node on a curve}
328
329 \SbSbSSCT{N\oe ud sur une courbe avec fnpnode }{Node on a curve with fnpnode }
330
331 \begin{tabular}{|l|} \hline
332 \begin{psgraph}[axesstyle=frame,xticksize=-1.5 1.5cm,yticksize=0 8cm,subticks=0](0,0)(0,-1.5)(13,1.5){8cm}{3cm}
333 \psset{algebraic}
334 \psplot[plotpoints=200,linewidth=2pt]{0}{13}{sin(x)}
335 \fnpnode{2}{sin(x)}{A}
336 \fnpnode{10}{sin(x)}{B}
337 \psdots[dotstyle=*,linecolor=red](A) \uput[-135](A){A}
338 \psdots[dotstyle=*,linecolor=red](B) \uput[45](B){B}
339 \psline[linestyle=dashed] (A) (B)
340 \end{psgraph}
341 \\ \hline
342 \BS{psplot}[plotpoints=200,linewidth=2pt]{0}\AC{13}{sin(x)}\\
343 \BSS{fnpnode}\AC{2}\AC{sin(x)}\AC{A} \BSI{fnpnode}{pst-node} \\
344 \BSS{fnpnode}\AC{10}\AC{sin(x)}\AC{B}\\
345 \BS{psline}[linestyle=dashed] (A) (B)
346 \\ \hline
347 \end{tabular}
348
349 %--------------------------------------
350
351 \SbSbSSCT{N\oe uds sur une courbe avec fnpnodes }{Nodes on a curve with fnpnodes }
352
353 \begin{tabular}{|l|} \hline
354 \begin{psgraph}[axesstyle=none,xticksize=-1.5 1.5cm,yticksize=0 8cm,subticks=0](0,0)(0,-1.5)(13,1.5){8cm}{3cm}
355 \psset{algebraic}
356 \psplot[plotpoints=200,linewidth=2pt]{0}{13}{sin(x)}
357 \fnpnodes[plotpoints=14]{0}{13}{sin(x)}{A}
358 \psdots[dotstyle=*,linecolor=red](A3)
359 \psdots[dotstyle=*,linecolor=red](A4)
360 \psdots[dotstyle=*,linecolor=red](A5)
361 \psdots[dotstyle=*,linecolor=red](A6)
362 \psdots[dotstyle=*,linecolor=red](A7)
363 \psdots[dotstyle=*,linecolor=red](A8)
364 \psdots[dotstyle=*,linecolor=red](A9)
365 \psdots[dotstyle=*,linecolor=red](A11)
366 \psdots[dotstyle=*,linecolor=red](A12)
367 \psdots[dotstyle=*,linecolor=red](A13)
368 \psdots[dotstyle=*,linecolor=red](A14)
369 \psdots[dotstyle=*,linecolor=red](A1)
370 \psdots[dotstyle=*,linecolor=red](A2) \uput[45](A2){A2}
371 \psdots[dotstyle=*,linecolor=red](A10) \uput[45](A10){A10}
372 \psline[linestyle=dashed] (A2) (A10)
373 \end{psgraph}
374 \\ \hline
375 \BS{psplot}[plotpoints=200,linewidth=2pt]{0}\AC{13}{sin(x)} \\
376 \BSS{fnpnodes}[plotpoints=14]\AC{0}\AC{13}\AC{sin(x)}\AC{A} \BSI{fnpnodes}{pst-node} \\
377 \BS{psline}[linestyle=dashed] (A2) (A10)
378 \\ \hline
379 \end{tabular}
380
381
382 %--------------------------------------
383
384 \SbSbSSCT{N\oe ud sur une courbe paramétrique avec curvepnode }{Node on a parametric curve with curvepnode }
385
386 \begin{tabular}{|l|} \hline
387 \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2 ,yticksize=-1.2 1.2 , subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){4cm}{4cm}
388 \psset{algebraic}
389 \parametricplot[plotpoints=200,linewidth=2pt]{0}{6.28}{sin(t)|sin(2*t)}
390 \curvepnode{2}{sin(t)|sin(2*t)}{A}
391 \curvepnode{6}{sin(t)|sin(2*t)}{B}
392 \psdots[dotstyle=*,linecolor=red](A) \uput[-45](A){A}
393 \psdots[dotstyle=*,linecolor=red](B) \uput[135](B){B}
394 \psline[linestyle=dashed] (A) (B)
395 \end{psgraph}
396 \\ \hline
397 \BS{parametricplot}[plotpoints=200]\AC{0}\AC{6.28}\AC{sin(t)|sin(2*t)}\\
398 \BSS{curvepnode}\AC{2}\AC{sin(t)|sin(2*t)}\AC{A} \BSI{curvepnode}{pst-node} \\
399 \BSS{curvepnode}\AC{6}\AC{sin(t)|sin(2*t)}\AC{B}\\
400 \BS{psline}[linestyle=dashed] (A) (B)
401 \\ \hline
402 \end{tabular}
403
404 \bigskip
405
406 \paragraph{Création automatique d'un n\oe ud pour la tangente} :
407
408 \begin{tabular}{|c|c|} \hline
409 \begin{psgraph}[axesstyle=none,xticksize=-1.5 1.5 ,yticksize=-1.5 1.5 , subticks=0](0,0)(-1.5,-1.5)(1.5,1.5){4cm}{4cm}
410 \psset{algebraic}
411 \parametricplot[plotpoints=200]{0}{6.28}{sin(t)|sin(2*t)}
412 \curvepnode{2}{sin(t)|sin(2*t)}{A}
413 \psxline[linewidth=2pt,linecolor=red]{<->}(A){-(Atang)}{(Atang)}
414 \uput[-45](A){A}
415 \psline[linewidth=2pt,linecolor=red] (0,0) (Atang)
416 \psdots[dotstyle=*,linecolor=blue](Atang)
417 \psdots[dotstyle=*,linecolor=blue](A)
418 \uput[-90](Atang){Atang}
419 \end{psgraph}
420 &
421 \begin{psgraph}[axesstyle=none,xticksize=-1.5 1.5 ,yticksize=-1.5 1.5 , subticks=0](0,0)(-1.5,-1.5)(1.5,1.5){4cm}{4cm}
422 \psset{algebraic}
423 \parametricplot[plotpoints=200]{0}{6.28}{sin(t)|sin(2*t)}
424 \curvepnode{4}{sin(t)|sin(2*t)}{X}
425 \psxline[linewidth=2pt,linecolor=red]{<->}(X){-1.5(Xtang)}{0.5(Xtang)}
426 \uput[-90](X){X}
427 \psline[linewidth=2pt,linecolor=red] (0,0) (Xtang)
428 \psdots[dotstyle=*,linecolor=blue](Xtang)
429 \psdots[dotstyle=*,linecolor=blue](X) \uput[-90](Xtang){Xtang}
430 \end{psgraph}
431 \\ \hline
432 \BS{curvepnode}\AC{2}\AC{sin(t)|sin(2*t)}\AC{{\red A}}
433 &
434 \BS{curvepnode}\AC{4}\AC{sin(t)|sin(2*t)}\AC{{\red X} }
435 \\
436 \BS{psxline}\AC{<->}(X)\AC{-({\red Atang})}\AC{({\red Atang})}
437 &
438 \BS{psxline}\AC{<->}(A)\AC{-0.5({\red Xtang})}\AC{1.5({\red Xtang})}
439 \\ \hline
440 \end{tabular}
441
442
443 %--------------------------------------
444
445 \SbSbSSCT{N\oe uds sur une courbe paramétrique avec curvepnodes }{Nodes on a parametric curve with curvepnodes }
446
447 \begin{tabular}{|c|c|} \hline
448 \multicolumn{2}{|c|}{ \BSS{curvepnodes}[plotpoints=100]\AC{1}\AC{5}\AC{sin(t)|sin(2*t)}\AC{A} \BSI{curvepnodes}{pst-node} } \\ \hline
449 \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2 ,yticksize=-1.2 1.2 , subticks=0](0,0)(-1.2,-1.2)(1.2,1.2){4cm}{4cm}
450 \psset{algebraic}
451 \parametricplot[plotpoints=200,linecolor=red]{1}{5}{sin(t)|sin(2*t)}
452 \curvepnodes[plotpoints=100]{1}{5}{sin(t)|sin(2*t)}{A}
453 \cnodeput[fillstyle=solid](A20){A}{20}
454 \cnodeput[fillstyle=solid](A80){B}{80}
455 \psline[linestyle=dotted] (A) (B)
456 \end{psgraph}
457 &
458 \begin{psgraph}[axesstyle=none,xticksize=-1.5 1.5 ,yticksize=-1.5 1.5 , subticks=0](0,0)(-1.5,-1.5)(1.5,1.5){4cm}{4cm}
459 \psset{algebraic}
460 \parametricplot[plotpoints=200,linecolor=red]{1}{5}{sin(t)|sin(2*t)}
461 \curvepnodes[plotpoints=100]{1}{5}{sin(t)|sin(2*t)}{A}
462 \psline[linewidth=2pt] (A20) (A80)
463 \end{psgraph}
464 \\ \hline
465 \BS{cnodeput}(A20)\AC{A}\AC{20}
466
467 &
468 \BS{psline}[linewidth=2pt] (A20) (A80)
469 \\
470 \BS{cnodeput}(A80)\AC{B}\AC{80}
471 &
472
473 \\ \hline
474 \end{tabular}
475
476 %--------------------------------------
477
478 \SbSSCT{Lignes relatives }{ Relative line }
479
480 \SbSbSSCT{Lignes relatives avec psRelNode }{Relative line width psRelNode }
481
482 \begin{tabular}{|l|l|} \hline
483 \begin{psgraph}[axesstyle=none,xticksize=0 5,yticksize=0 6,subticks=0](0,0)(0,0)(6,5){3cm}{2.5cm}
484 \psline[linewidth=4pt](1,1)(3,2)
485 \psRelLine[linecolor=red](1,1)(3,2){2}{A}
486 \psdots[dotstyle=*,linecolor=red](A) \nput{45}{A}{A}%
487 \psRelLine[linecolor=green,angle=30](1,1)(3,2){2}{B}
488 \psdots[dotstyle=*,linecolor=green](B) \nput{0}{B}{B}%
489 \psdots[dotstyle=*,](1,1)
490 \psdots[dotstyle=*,](3,2)
491 \end{psgraph}
492 &
493 \begin{psgraph}[axesstyle=none,xticksize=0 5,yticksize=0 6,subticks=0](0,0)(0,0)(6,5){3cm}{2.5cm}
494 %\psline[linewidth=3pt](1,1)(3,2)
495 \pnode(1,1){B}\pnode(3,2){C}
496 \psRelNode[linecolor=red,angle=30](B)(C){2}{A}
497 \psdots[dotstyle=*,linecolor=red](A) \nput{-45}{A}{A}%
498 \psdots[dotstyle=*,linecolor=blue](B) \nput{135}{B}{B}
499 \psdots[dotstyle=*,linecolor=blue](C) \nput{45}{C}{C}%
500 \psline[linewidth=2pt](B)(C)
501 \psline[linewidth=2pt,linecolor=red](B)(A)
502 \end{psgraph}
503 \\ \hline
504 \BSS{psRelLine}(1,1)(3,2)\AC{2}\AC{{\red A}}
505 \BSI{psRelLine}{pst-node} \BSI{psRelLine}{pstricks-add}
506 &
507
508 \\
509 \BS{}psRelLine[{\red angle=30}](0,0)(2,1)\AC{2}\AC{{\red B}}
510 &
511 \BSS{psRelNode}[linecolor=red,angle=30](B)(C)\AC{2}\AC{{\red A}} \BSI{psRelNode}{pst-node} \BSI{psRelNode}{pstricks-add}
512 \\ \hline
513 \end{tabular}
514
515 \bigskip
516
517 \paragraph{Paramètre trueAngle} :
518
519 \begin{tabular}{|l|} \hline
520 \begin{psgraph}[axesstyle=none,xticksize=0 5,yticksize=0 4,subticks=0](0,0)(0,0)(4,6){6cm}{3cm}
521 \psline[linewidth=3pt,linecolor=blue](1,1)(3,1)
522 \psRelLine[linecolor=red,angle=45](1,1)(3,1){1}{A}
523 \psRelLine[linecolor=red,angle=45,trueAngle](1,1)(3,1){1}{B}
524 \psdots[dotstyle=*,linecolor=red](A) \nput{90}{A}{A}%
525 \psdots[dotstyle=*,linecolor=red](B) \nput{90}{B}{B}%
526 \end{psgraph}
527 \\ \hline
528 \BS{psRelLine}[angle=45](1,1)(3,1)\AC{1}\AC{{\red A}}
529 \\
530 \BS{psRelLine}[angle=45,\RDD{trueAngle}](1,1)(3,1)\AC{1}\AC{{\red B}}
531 \\ \hline
532 \end{tabular}
533
534 %--------------------------------------
535
536
537 \SbSbSSCT{Lignes relatives avec psRelLineVar }{Relative line width psRelLineVar }
538
539 \begin{tabular}{|c|c|} \hline
540 \begin{psgraph}[axesstyle=none,xticksize=0 6,yticksize=0 6,subticks=0](0,0)(6,6){3cm}{3cm}
541 \pnodes(4,1){A}(2,3){B} (1,2){C}
542 \uput[-135](B){B}
543 \uput[-45](A){A}
544 \psdots[dotstyle=*,linecolor=blue](B)
545 \psdots[dotstyle=*,linecolor=blue](A)
546 \psRelLineVar[linecolor=red](B)(A)(1;90){X}
547 \psarc[linestyle=dashed](B){2.828}{-60}{60}
548 \uput[45](X){X}
549 \psdots[dotstyle=*,linecolor=red](X)
550 \psline(A)(B)
551 \end{psgraph}
552 &
553 \begin{psgraph}[axesstyle=none,xticksize=0 6,yticksize=0 6,subticks=0](0,0)(6,6){3cm}{3cm}
554 \pnodes(4,1){A}(2,3){B} (1,2){C}
555 \uput[-135](B){B}
556 \uput[-45](A){A}
557 \psdots[dotstyle=*,linecolor=blue](B)
558 \psdots[dotstyle=*,linecolor=blue](A)
559 \psRelLineVar[linecolor=red](B)(A)(0.5;135){Y}
560 \uput[45](Y){Y}
561 \psarc[linestyle=dashed](B){1.414}{-70}{120}
562 \psdots[dotstyle=*,linecolor=red](Y)
563 \psline(A)(B)
564 \end{psgraph}
565 \\ \hline
566 \BSS{psRelLineVar}(B)(A)({\red 1;90})\AC{X} \BSI{psRelLineVar}{pst-node} &
567 \BSS{psRelLineVar}(B)(A)({\red 0.5;135})\AC{Y}
568 \\ \hline
569 \end{tabular}
570
571 %--------------------------------------
572
573
574 \SbSbSSCT{Ligne par une série de points avec psnline }{ Line from seval points width psnline }
575
576 \begin{tabular}{|l|l|} \hline
577 \begin{psgraph}[axesstyle=none,xticksize=0 3cm,yticksize=0 5cm,subticks=0](0,0)(5,3){5cm}{3cm}
578 \pnodes{A}(1,1)(3,0.5)(4,2)(2,3)(1,2)
579
580 \psdots[dotstyle=*,linecolor=blue](A0) \uput[-135](A0){A0}
581 \psdots[dotstyle=*,linecolor=blue](A1) \uput[-45](A1){A1}
582 \psdots[dotstyle=*,linecolor=blue](A2) \uput[-45](A2){A2}
583 \psdots[dotstyle=*,linecolor=blue](A3) \uput[-90](A3){A3}
584 \psdots[dotstyle=*,linecolor=blue](A4) \uput[-45](A4){A4}
585 \psnline[linecolor=red](0,3){A}
586 \end{psgraph}
587 &
588 \begin{psgraph}[axesstyle=none,xticksize=0 3cm,yticksize=0 5cm,subticks=0](0,0)(5,3){5cm}{3cm}
589 \pnodes{A}(1,1)(3,0.5)(4,2)(2,3)(1,2)
590 \psdots[dotstyle=*,linecolor=blue](A0) \uput[-135](A0){A0}
591 \psdots[dotstyle=*,linecolor=blue](A1) \uput[-45](A1){A1}
592 \psdots[dotstyle=*,linecolor=blue](A2) \uput[-45](A2){A2}
593 \psdots[dotstyle=*,linecolor=blue](A3) \uput[-90](A3){A3}
594 \psdots[dotstyle=*,linecolor=blue](A4) \uput[-45](A4){A4}
595 \psnline[linecolor=red](2,2){A}
596 \end{psgraph}
597 \\ \hline
598 \BS{pnodes}\AC{A}(1,1)(3,0.5)(4,2)(2,3)(1,1)
599 &
600 \BS{pnodes}\AC{A}(1,1)(3,0.5)(4,2)(2,3)(1,1)
601 \\
602 \BSS{psnline}({ \red 0,3})\AC{A} \BSI{psnline}{pst-node}
603 &
604 \BSS{psnline}({ \red 2,2})\AC{A}
605 \\ \hline
606 \end{tabular}
607
608 %--------------------------------------
609
610
611 \SbSbSSCT{Courbe par une série de points avec psncurve }{ Curve from seval points width psncurve }
612
613
614 \begin{tabular}{|l|l|} \hline
615 \begin{psgraph}[axesstyle=none,xticksize=0 3cm,yticksize=0 5cm,subticks=0](0,0)(5,3){5cm}{3cm}
616 \pnodes{A}(1,1)(3,0.5)(4,2)(2,3)(1,2)
617
618 \psdots[dotstyle=*,linecolor=blue](A0) \uput[-135](A0){A0}
619 \psdots[dotstyle=*,linecolor=blue](A1) \uput[-45](A1){A1}
620 \psdots[dotstyle=*,linecolor=blue](A2) \uput[-45](A2){A2}
621 \psdots[dotstyle=*,linecolor=blue](A3) \uput[-90](A3){A3}
622 \psdots[dotstyle=*,linecolor=blue](A4) \uput[-45](A4){A4}
623 \psncurve[linecolor=red](0,3){A}
624 \end{psgraph}
625 &
626 \begin{psgraph}[axesstyle=none,xticksize=0 3cm,yticksize=0 5cm,subticks=0](0,0)(5,3){5cm}{3cm}
627 \pnodes{A}(1,1)(3,0.5)(4,2)(2,3)(1,2)
628 \psdots[dotstyle=*,linecolor=blue](A0) \uput[-135](A0){A0}
629 \psdots[dotstyle=*,linecolor=blue](A1) \uput[-45](A1){A1}
630 \psdots[dotstyle=*,linecolor=blue](A2) \uput[-45](A2){A2}
631 \psdots[dotstyle=*,linecolor=blue](A3) \uput[-90](A3){A3}
632 \psdots[dotstyle=*,linecolor=blue](A4) \uput[-45](A4){A4}
633 \psncurve[linecolor=red](2,2){A}
634 \end{psgraph}
635 \\ \hline
636 \BS{pnodes}\AC{A}(1,1)(3,0.5)(4,2)(2,3)(1,1)
637 &
638 \BS{pnodes}\AC{A}(1,1)(3,0.5)(4,2)(2,3)(1,1)
639 \\
640 \BSS{psncurve}({\red 0,3})\AC{A} \BSI{psncurve}{pst-node}
641 &
642 \BSS{psncurve}({\red 2,2})\AC{A}
643 \\ \hline
644 \end{tabular}
645
646 %--------------------------------------
647
648 \SbSbSSCT{ligne par pas succesifs avec psrline }{ Line by succesive step width psrline }
649
650 \begin{tabular}{|c|} \hline
651 \begin{psgraph}[axesstyle=none,xticksize=0 2cm,yticksize=0 5cm,subticks=0](0,0)(5,2){5cm}{2cm}
652 \psrline[linewidth=2pt,linecolor=red](0,.5)(1,1)(1,-1)(2,1)
653 \psline[linestyle=dashed,arrowscale=2]{->}(0,.5)(1,.5)(1,1.5)\psline[linestyle=dashed,arrowscale=2]{->}(1,1.5)(2,1.5)(2,0.5)
654 \psline[linestyle=dashed,arrowscale=2]{->}(2,.5)(4,.5)(4,1.5)
655 \end{psgraph}
656 \\ \hline
657 \BSS{psrline}(0,0.5)(1,1)(1,-1)(2,1) \BSI{psrline}{pst-node}
658
659 \\ \hline
660 \end{tabular}
661
662 %--------------------------------------
663
664 \SbSbSSCT{Lignes par rapport à un point avec psxline }{ Lines relative at a point width psxline }
665
666 \begin{tabular}{|c|c|} \hline
667 \begin{psgraph}[axesstyle=none,xticksize=0 6,yticksize=0 6,subticks=0](0,0)(6,6){4cm}{4cm}
668 \pnodes(3,1){A}(2,3){B} (1,2){C}
669 \uput[-45](B){B}
670 \psxline[linecolor=red]{<->}(B){1,2}{3,1}
671 \psdots[dotstyle=*,dotscale=2](B)
672 \psline (B)(3,5)
673 \psline (B)(5,4)
674 \end{psgraph}
675 &
676 \begin{psgraph}[axesstyle=none,xticksize=0 6,yticksize=0 6,subticks=0](0,0)(6,6){4cm}{4cm}
677 \pnodes(3,1){A}(2,3){B} (1,2){C}
678 \uput[-45](A){A}
679 \uput[-45](B){B}
680 \uput[-45](C){C}
681 \psxline[linecolor=red]{<->}(B){A}{C}
682 \psdots[dotstyle=*,linecolor=blue](A)
683 \psdots[dotstyle=*,linecolor=blue](B)
684 \psdots[dotstyle=*,linecolor=blue](C)
685 \psline(0,0)(C)
686 \psline (0,0)(A)
687 \psline (B)(3,5)
688 \psline (B)(5,4)
689 \end{psgraph}
690 \\ \hline
691 \BSS{psxline}\AC{<->}(B)\AC{1,2}\AC{3,1} \BSI{psxline}{pst-node}
692 &
693 \BSS{psxline}\AC{<->}(B)\AC{A}\AC{C}
694 \\ \hline
695 \end{tabular}
696
697 \psset{unit=1}
698
699 %-----------------------------------------------------------
700 \SbSSCT{Lignes parallèles et leur noeud final}{Parallel lines and their endpoint}
701
702 \TFRGB{ Syntaxe : \\
703 \BS{}psParallelLine(Point 1)(point 2 )(point 3)\AC{longueur}\AC{nom extrémité} }{Syntax :
704 \BS{}psParallelLine(Point 1)(point 2 )(point 3)\AC{lengh}\AC{end name}}
705
706 \bigskip
707
708
709 \begin{tabular}{|l|} \hline
710 \begin{psgraph}[axesstyle=none,xticksize=0 5,yticksize=0 6,subticks=0](0,0)(0,0)(6,5){3cm}{2.5cm}
711 \psline[linewidth=3pt,linecolor=blue](2,1)(4,2)
712 \psParallelLine[linecolor=red](2,1)(4,2)(1,2){2}{A}
713 \psdots[dotstyle=*,linecolor=red](A) \nput{45}{A}{A}%
714 \psParallelLine[linecolor=green](2,1)(4,2)(1,3){1}{B}
715 \psdots[dotstyle=*,linecolor=green](B) \nput{45}{B}{B}%
716 \psParallelLine[linecolor=cyan](2,1)(4,2)(1,4){.5}{C}
717 \psdots[dotstyle=*,linecolor=cyan](C) \nput{45}{C}{C}%
718 \end{psgraph}
719 \\ \hline
720 \BSS{psParallelLine}(2,1)(4,2))(1,2)\AC{{\red 2}}\AC{{\red A}} \BSI{psParallelLine}{pstricks-add}
721 \\
722 \BS{psParallelLine}(2,1)(4,2)(1,3)\AC{{\green 1}}\AC{{\green B}}
723 \\
724 \BS{psParallelLine}(2,1)(4,2)(1,4)\AC{{\cyan 0.5}}\AC{{\cyan C}}
725 \\ \hline
726 \end{tabular}
727
728 %---------------------------
729
730 \SbSSCT{Lignes perpendiculaires une droite}{Perpendiculars to a lines}
731
732 \begin{tabular}{|l|} \hline
733 \begin{psgraph}[axesstyle=none,xticksize=0 5,yticksize=0 6,subticks=0](0,0)(0,0)(6,5){3cm}{2.5cm}
734 \psline(5,5)(3,0)
735 \psPline[linecolor=red,arrowscale=2]{->}(0,3)(5,5)(3,0)
736 \psPline[linecolor=green,arrowscale=2](1,4)(5,5)(3,0)
737 \end{psgraph}
738 \\ \hline
739 \BS{}psline(5,5)(3,0)
740 \\
741 \BSS{psPline}[linecolor=red]\AC{->}(0,3)(5,5)(3,0)
742 \\
743 \BS{}psPline[linecolor=green](1,4)(5,5)(3,0)
744 \\ \hline
745 \end{tabular}
746
747 %---------------------------------------
748
749 \subsection{Vecteur normal }
750
751 \begin{tabular}{|c|c|} \hline
752 \begin{psgraph}[axesstyle=none,xticksize=0 3cm,yticksize=-2 4cm,subticks=0](0,0)(-2,0)(4,3){6cm}{3cm}
753 \pnode(2,1){B}
754 \normalvec(B){A}
755 \psline[linecolor=red]{->}(0,0) (A)
756 \psline{->}(0,0) (B)
757 \nput{90}{B}{B}
758 \nput{90}{A}{A}%
759 \end{psgraph}
760 &
761 \begin{psgraph}[axesstyle=none,xticksize=-1.5 1.5 ,yticksize=-1.5 1.5 , subticks=0](0,0)(-1.5,-1.5)(1.5,1.5){2.5cm}{2.5cm}
762 \psset{algebraic}
763 \parametricplot[plotpoints=200]{0}{6.28}{sin(t)|sin(2*t)}
764 \curvepnode{2}{sin(t)|sin(2*t)}{A}
765 \psxline[linewidth=2pt,linestyle=dashed]{<->}(A){-(Atang)}{(Atang)}
766 \uput[-45](A){A}
767 \normalvec(Atang){B}
768 \psdots[dotstyle=*,linecolor=blue](A)
769 \psxline[linewidth=2pt,linecolor=red]{->}(A){}{-2(B)}
770 \end{psgraph}
771 \\ \hline
772 \BSS{normalvec}(B)\AC{A} \BSI{normalvec}{pst-node}
773 &
774 \BSS{normalvec}(Atang)\AC{B}
775 \\
776 &
777 \BS{psxline}\AC{->}(A)\AC{} \AC{-2(B)}
778 \\ \hline
779 \end{tabular}
780
781 %-----------------------------------------
782
783 \SbSSCT{Tangentes}{Tangents}
784
785 \SbSbSSCT{Tangentes à un cercle par rapport à un point}{Tangent lines of a circle}
786
787 \begin{tabular}{|l|} \hline
788 \begin{psgraph}[axesstyle=none,xticksize=-2 2,yticksize=-4 2,subticks=0](0,0)(-4,-2)(5,2){7cm}{3cm}
789 \pscircle(03, 0){1}
790 \psdots[dotstyle=*,linecolor=blue,dotscale=2](-3,0)
791 \psCircleTangents(-3, 0)(3, 0){1}
792 \pcline[nodesep=-1cm,linestyle=dashed](-3, 0)(CircleT1)
793 \pcline[nodesep=-1cm,linestyle=dashed](-3, 0)(CircleT2)
794 \psdots[dotstyle=*,linecolor=red,dotscale=2](CircleT1)
795 \psdots[dotstyle=*,linecolor=red,dotscale=2](CircleT2)
796 \nput{-90}{CircleT1}{CircleT1}%
797 \nput{90}{CircleT2}{CircleT2}%
798 \psdots[dotstyle=*](3,0)
799 \psrline[linestyle=dotted]{->}(3,0)(1;45)
800 \end{psgraph}
801 \\ \hline
802 \BS{pscircle}(3,0)\AC{1} \\
803 \BSS{psCircleTangents}(-3,0)(3,0)\AC{1} \BSI{psCircleTangents}{pstricks-add} \\
804 \BS{pcline}[nodesep=-1cm,linecolor=blue](-3,0)({\red CircleT1}) \\
805 \BS{nput}\AC{-90}\AC{{\red CircleT1}}\AC{CircleT1}%
806 \\ \hline
807 \end{tabular}
808
809
810 %------------------------------------------------------------------------------
811 \SbSbSSCT{Tangentes à une ellipse par rapport à un point}{Tangent lines of an ellipse}
812
813 \begin{tabular}{|l|} \hline
814
815 \begin{psgraph}[axesstyle=none,xticksize=-2 2,yticksize=-5 6,subticks=0](0,0)(-5,-2)(6,2){7cm}{3cm}
816 \psellipse(3, 0)(2, 1)
817 \psdots[dotstyle=*,linecolor=blue,dotscale=2](-3,0)
818 \psEllipseTangents(3, 0)(2, 1)(-3,0)
819 \pcline[nodesep=-1cm,linestyle=dashed](-3, 0)(EllipseT1)
820 \pcline[nodesep=-1cm,linestyle=dashed](-3, 0)(EllipseT2)
821 \psdots[dotstyle=*,linecolor=red,dotscale=2](EllipseT1)
822 \psdots[dotstyle=*,linecolor=red,dotscale=2](EllipseT2)
823 \nput{-90}{EllipseT1}{EllipseT1}%
824 \nput{90}{EllipseT2}{EllipseT2}%
825 \psline[linestyle=dotted]{<->}(1,0)(3,0)
826 \psline[linestyle=dotted]{<->}(3,0)(3,1)
827 \end{psgraph}
828 \\ \hline
829 \BS{}psellipse(3,0)(2,1) \\
830 \BSS{psEllipseTangents}(3,0)(2,1)(-3,0) \BSI{psEllipseTangents}{pstricks-add} \\
831 \BS{}pcline[nodesep=-1cm](-3,0)({\red EllipseT1}) \\
832 \BS{}nput\AC{90}\AC{{\red EllipseT1}}\AC{EllipseT1}%
833 \\ \hline
834 \end{tabular}
835
836
837 %-----------------------------------------------------------\BSS{psCircleTangents}(-3,0)(3,0)\AC{1}-------------------------------------
838 \SbSbSSCT{Tangentes à deux cercles}{Tangent lines of circles}
839 \psset{unit=.5cm}
840
841
842 \begin{tabular}{|l|} \hline
843 \begin{psgraph}[axesstyle=none,xticksize=-3 3,yticksize=-4 14,subticks=0](0,0)(-4,-3)(14,3){9cm}{3cm}
844 \pscircle(-1, 0){2}
845 \pscircle(5, 0){1}
846 \psCircleTangents(-1, 0){2}(5, 0){1}
847 \pcline[nodesep=-1cm,linestyle=dashed](CircleTO1)(CircleTO2)
848 \pcline[nodesep=-1cm,linestyle=dashed](CircleTO3)(CircleTO4)
849 \pcline[nodesep=-1cm,linestyle=dashed](CircleTO3)(CircleTC2)
850 \pcline[nodesep=-1cm,linestyle=dashed](CircleTO2)(CircleTC2)
851 \psdots[dotstyle=*,linecolor=red,dotscale=2](CircleTC2)
852 \psdots[dotstyle=*,linecolor=red,dotscale=2](CircleTO1)
853 \psdots[dotstyle=*,linecolor=red,dotscale=2](CircleTO2)
854 \psdots[dotstyle=*,linecolor=red,dotscale=2](CircleTO3)
855 \psdots[dotstyle=*,linecolor=red,dotscale=2](CircleTO4)
856 \nput{90}{CircleTC2}{CircleTC2}%
857 \nput{45}{CircleTO1}{CircleTO1}%
858 \nput{45}{CircleTO2}{CircleTO2}%
859 \nput{-45}{CircleTO3}{CircleTO3}%
860 \nput{-45}{CircleTO4}{CircleTO4}%
861 \end{psgraph}
862 \\ \hline
863 \BSS{psCircleTangents}(-1, 0)\AC{2}(5,0)\AC{1} \\
864
865 \BS{}psdots[dotstyle=*,linecolor=red,dotscale=2]({\red CircleTC2})
866
867 \\ \hline
868 \end{tabular}
869
870
871
872 \bigskip
873 \psset{xunit=1cm}
874
875
876 \begin{tabular}{|l|} \hline
877 \begin{psgraph}[axesstyle=none,xticksize=-3 3,yticksize=-3 6,subticks=0](0,0)(-3,-3)(6,3){9cm}{3cm}
878 \pscircle(-1, 0){2}
879 \pscircle(5, 0){1}
880 \psCircleTangents(-1, 0){2}(5, 0){1}
881 \pcline[nodesep=-1cm,linestyle=dashed](CircleTI1)(CircleTI2)
882 \pcline[nodesep=-1cm,linestyle=dashed](CircleTI3)(CircleTI4)
883 \psdots[dotstyle=*,linecolor=red,dotscale=2](CircleTC1)
884 \psdots[dotstyle=*,linecolor=red,dotscale=2](CircleTI1)
885 \psdots[dotstyle=*,linecolor=red,dotscale=2](CircleTI2)
886 \psdots[dotstyle=*,linecolor=red,dotscale=2](CircleTI3)
887 \psdots[dotstyle=*,linecolor=red,dotscale=2](CircleTI4)
888 \nput{90}{CircleTC1}{CircleTC1}%
889 \nput{45}{CircleTI1}{CircleTI1}%
890 \nput{-135}{CircleTI2}{CircleTI2}%
891 \nput{-45}{CircleTI3}{CircleTI3}%
892 \nput{135}{CircleTI4}{CircleTI4}%
893 \end{psgraph}
894 \\ \hline
895 \BS{}psdots[dotstyle=*,linecolor=red,dotscale=2]({\red CircleTC1}) \\
896
897 \BS{}nput\AC{90}\AC{{\red CircleTC1}}\AC{CircleTC1}%
898 \\ \hline
899 \end{tabular}
900
901
902 \psset{unit=1cm,fillcolor=white,fillstyle=none,linecolor=blue}
903
904 %------------------------------------------------------------
905 \subsection{Intersections}
906
907 \SbSbSSCT{Point d'intersection avec psIntersectionPoint}{Intersection point of two lines width psIntersectionPoint}
908 \TFRGB{Syntaxe : \\
909 \BS{}psIntersectionPoint(point 1)(point 2)(point 3)(point 4)\AC{nom}}{Syntax : \BS{}psIntersectionPoint(point 1)(point 2)(point 3)(point 4)\AC{name}}
910
911 \bigskip
912 \psset{unit=1cm}
913
914
915 \begin{tabular}{|c|} \hline
916 \begin{psgraph}[axesstyle=none,xticksize=-1 4,yticksize=0 5,subticks=0](0,0)(0,-1)(5,4){3cm}{3cm}
917 \psdots[dotstyle=*,dotsize=6pt](1,3)
918 \psdots[dotstyle=*,dotsize=6pt](4,0)
919 \pnode(1,0){B} \pscircle*(B){3pt} \nput{135}{B}{B}%
920 \pnode(4,3){C} \pscircle*(C){3pt} \nput{45}{C}{C}%
921 \psline[linecolor=blue](B)(C)
922 \psline[linecolor=blue](1,3)(4,0)
923 \psIntersectionPoint(B)(C)(1,3)(4,0){A}
924 \psdots[dotstyle=*,linecolor=red,dotscale=2](A) \nput{90}{A}{A}%
925 \end{psgraph}
926 \\ \hline
927 \BSS{psIntersectionPoint}(B)(C)(1,3)(4,0)\AC{{\red A}} \BSI{psIntersectionPoint}{pstricks-add}
928 \\ \hline
929 \end{tabular}
930
931 %----------------------------------------
932
933 \SbSbSSCT{Points d'intersection avec polyIntersections} {Intersection points with polyIntersections}
934 %\subsubsection{polyIntersections}
935
936 \begin{tabular}{|c|c|} \hline
937 \begin{psgraph}[axesstyle=none,xticksize=0 3cm,yticksize=0 4cm,subticks=0](0,0)(0,0)(4,3){4cm}{3cm}
938 \psline(0.5,.5)(3,.5)(2.5,2)(1,2.5)(.5,1)
939 \pnodes(1,1.5){A}(1.5,1){B}
940 \polyIntersections{X}{Y}(A)(B)(0.5,.5)(3,.5)(2.5,2)(1,2.5)(.5,1)
941 \psdots(A)(B)\psline(X)(Y)
942 \psdots[dotstyle=*,linecolor=red](X)
943 \psdots[dotstyle=*,linecolor=red](Y)
944 \uput[0](X){X}\uput[-180](Y){Y}
945 \uput[0](A){A}\uput[-180](B){B}
946 \end{psgraph}
947 &
948 \begin{psgraph}[axesstyle=none,xticksize=0 3cm,yticksize=0 4cm,subticks=0](0,0)(0,0)(4,3){4cm}{3cm}
949 \pnodes{P}(0.5,.5)(3,.5)(2.5,2)(1,2.5)(.5,1)
950 \pnode(1,1.5){A}\pnode(1.5,1){B}
951 \polyIntersections{X}{Y}(A)(B){P}{4}
952 \psnline(0,4){P}
953 \psdots(A)(B)\psline(X)(Y)
954 \psdots[dotstyle=*,linecolor=red](X)
955 \psdots[dotstyle=*,linecolor=red](Y)
956 \uput[-45](X){X}\uput[-180](Y){Y}
957 \uput[0](A){A}\uput[-180](B){B}
958 \end{psgraph}
959 \\ \hline
960 \BSS{polyIntersections}\AC{X}\AC{Y}(A)(B) \BSI{polyIntersections}{pst-node}
961 &
962 \BS{pnodes}\AC{P}(0.5,.5)(3,.5)(2.5,2)(1,2.5)(.5,1)
963 \\
964 (0.5,0.5)(3,0.5)(2.5,2)(1,2.5)(0.5,1)
965 &
966 \BSS{polyIntersections}\AC{X}\AC{Y}(A)(B)\AC{P}\AC{4}
967 \\ \hline
968 \end{tabular}
969
970
971 \bigskip
972
973 \begin{tabular}{|l|} \hline
974 \begin{psgraph}[axesstyle=none,xticksize=-1.5 1.5cm,yticksize=0 8cm,subticks=0](0,0)(0,-1.5)(13,1.5){12cm}{3cm}
975 \psset{algebraic}
976 \psplot[plotpoints=200]{0}{13}{sin(x)}
977 \fnpnodes[plotpoints=100]{0}{13}{sin(x)}{A}
978 \pnode(4,0.5){C} \pnode(6,.5){B}
979 \polyIntersections{X}{Y}(C)(B){A}{60}
980 \psline(X)(Y)
981 \psdots[dotstyle=*](B)
982 \psdots[dotstyle=*](C)
983 \psdots[dotstyle=*,linecolor=red](X)
984 \psdots[dotstyle=*,linecolor=red](Y)
985 \psdots[dotstyle=*,linecolor=green](A60)
986 \uput[90](C){C}\uput[90](B){B}
987 \uput[0](X){X}\uput[180](Y){Y}\uput[90](A60){A60}
988 \end{psgraph}
989 \\ \hline
990 \BS{fnpnodes}[plotpoints=100]\AC{0}\AC{13}\AC{sin(x)}\AC{A} \\
991 \BSS{polyIntersections}\AC{X}\AC{Y}(C)(B)\AC{A}\AC{60}
992 \\ \hline
993 \end{tabular}
994
995 \bigskip
996
997 \begin{tabular}{|l|} \hline
998 \begin{psgraph}[axesstyle=none,xticksize=-1.2 1.2 ,yticksize=-1.5 1.5 , subticks=0](0,0)(-1.5,-1.2)(1.5,1.2){8cm}{3cm}
999 \psset{algebraic}
1000 \parametricplot[plotpoints=200]{1}{5}{sin(t)|sin(2*t)}
1001 \curvepnodes[plotpoints=100]{1}{5}{sin(t)|sin(2*t)}{A}
1002 \pnode(0,0.5){C} \pnode(.5,.5){B}
1003 \polyIntersections{X}{Y}(C)(B){A}{75}
1004 \psline(X)(Y)
1005 \psdots[dotstyle=*](B)
1006 \psdots[dotstyle=*](C)
1007 \psdots[dotstyle=*,linecolor=red](X)
1008 \psdots[dotstyle=*,linecolor=red](Y)
1009 \psdots[dotstyle=*,linecolor=green](A75)
1010 \uput[90](C){C}\uput[90](B){B}
1011 \uput[0](X){X}\uput[180](Y){Y}\uput[90](A75){A75}
1012 \end{psgraph}
1013 \\ \hline
1014 \BS{curvepnodes}[plotpoints=100]\AC{1}\AC{5}\AC{sin(t)|sin(2*t)}\AC{A} \\
1015 \BSS{polyIntersections}\AC{X}\AC{Y}(C)(B)\AC{A}\AC{75}
1016 \\ \hline
1017 \end{tabular}
1018
1019
1020
1021
1022 \newpage
1023 %-----------------------------------------------------------------------
1024 \SbSSCT{Les 9 positions d'une figure par \BS{}psDefPSPNodes}{The 9 positions with \BS{}psDefPSPNodes}
1025 \bigskip
1026
1027 \begin{tabular}{l}
1028 \begin{pspicture}(6,4)
1029 \psaxes[xticksize=4,yticksize=6,axesstyle=none](6,4)
1030 \psDefPSPNodes
1031 \psdots[linecolor=red,dotscale=2](PSPbl)(PSPbc)(PSPbr)(PSPcl)(PSPcc)(PSPcr)(PSPtl)(PSPtc)(PSPtr)
1032 \uput[45](PSPbl){PSPbl} \uput[90](PSPbc){PSPbc}
1033 \uput[90](PSPbr){PSPbr} \uput[45](PSPcl){PSPcl}
1034 \uput[90](PSPcc){PSPcc} \uput[90](PSPcr){PSPcr}
1035 \uput[45](PSPtl){PSPtl} \uput[90](PSPtc){PSPtc}
1036 \uput[90](PSPtr){PSPtr}
1037 \end{pspicture}
1038 \\
1039 \\
1040 \\ \hline
1041 \BS{}begin{pspicture}(6,4)\\
1042
1043 \BSS{psDefPSPNodes} \BSI{psDefPSPNodes}{pstricks-add} \\
1044
1045 \BS{}psdots({\red PSPbl})\\
1046
1047 \BS{}uput[45](PSPbl)\AC{{\red PSPbl}}
1048 \\
1049 \end{tabular}
1050
1051 %--------------------------------
1052
1053 \SbSSCT{N\oe uds sur du texte avec \BS{}psDefBoxNodes}{Nodes on text with \BS{}psDefBoxNodes}
1054 \bigskip
1055
1056 \begin{tabular}{|l|} \hline
1057 \psscalebox{8}{\psDefBoxNodes{nom}{\color{red!20} abcdefghij}}%
1058 \shorthandoff{ :}
1059 \uput[90](nom:tl){tl} \qdisk(nom:tl){3pt}
1060 \uput[90](nom:tC){tC} \qdisk(nom:tC){3pt}
1061 \uput[90](nom:tr){tr} \qdisk(nom:tr){3pt}
1062 \uput[90](nom:Cl){Cl} \qdisk(nom:Cl){3pt}
1063 \uput[90](nom:C){C} \qdisk(nom:C){3pt}
1064 \uput[90](nom:Cr){Cr} \qdisk(nom:Cr){3pt}
1065 \uput[90](nom:Bl){Bl} \qdisk(nom:Bl){3pt}
1066 \uput[90](nom:BC){BC} \qdisk(nom:BC){3pt}
1067 \uput[90](nom:Br){Br} \qdisk(nom:Br){3pt}
1068 \uput[90](nom:bl){bl} \qdisk(nom:bl){3pt}
1069 \uput[90](nom:bC){bC} \qdisk(nom:bC){3pt}
1070 \uput[90](nom:br){br} \qdisk(nom:br){3pt}
1071 \shorthandon{ :}
1072 \\ \hline
1073 \\
1074 \BS{psscalebox}\AC{15}\AC{ \BSS{psDefBoxNodes}\AC{{\red nom}} \AC{ \BS{color}\AC{red!20} abcdefghij}}\\
1075 \BSS{shorthandoff}\AC{:} \footnotemark[1] \\
1076 \BS{uput}[90]({\red nom\xx tl})\AC{tl} \hspace{1cm} \BS{qdisk}({\red nom\xx tl})\AC{3pt} \\ \hspace{1cm} $\vdots $\\
1077 \BSS{shorthandon}\AC{:}
1078 \\ \hline
1079 \end{tabular}
1080 \footnotetext[1]{désactivation et ré-activation de \og : \fg conflit entre ce module et Babel en français }
1081
1082
1083 \subsection{ArrowNotch}
1084
1085 \begin{tabular}{|l|l|} \hline
1086 \multicolumn{2}{|c|}{ \BS{curvepnodes}[plotpoints=100]\AC{1}\AC{1.1}\AC{sin(t)|sin(2*t)}\AC{{\red A}} }
1087 \\ \hline
1088 \begin{psgraph}[axesstyle=none,xticksize=0.5 0.6 ,yticksize=0.5 0.6 , subticks=0](0.8,0.8)(.9,.95){5cm}{5cm}
1089 \psset{algebraic}
1090 \parametricplot[plotpoints=200]{1}{1.1}{sin(t)|sin(2*t)}
1091 \curvepnodes[plotpoints=100]{1}{1.3}{sin(t)|sin(2*t)}{A}
1092 \ArrowNotch[arrowscale=10]{A}{0}{>}{X}
1093 \psline[linecolor=red,arrowscale=5]{-D>}(X)(A0)
1094 \psdots[dotstyle=*](X) \uput[-135](X){X}
1095 \psdots[dotstyle=*](A0) \uput[-135](A0){A0}
1096 \end{psgraph}
1097 &
1098 \begin{psgraph}[axesstyle=none,xticksize=0.5 0.6 ,yticksize=0.5 0.6 , subticks=0](0.8,0.8)(.9,.95){5cm}{5cm}
1099 \psset{algebraic}
1100 \parametricplot[plotpoints=200]{1}{1.1}{sin(t)|sin(2*t)}
1101 \curvepnodes[plotpoints=100]{1}{1.5}{sin(t)|sin(2*t)}{A}
1102 \ArrowNotch[arrowscale=10]{A}{0}{<}{V}
1103 \psline[linecolor=red,arrowscale=5]{-D>}(V)(A0)
1104 \psdots[dotstyle=*](V) \uput[-135](V){V}
1105 \psdots[dotstyle=*](A0) \uput[-135](A0){A0}
1106 \end{psgraph}
1107 \\ \hline
1108 \BSS{ArrowNotch}[arrowscale=10]\AC{{\red A}}\AC{0}\AC{>}\AC{X} \BSI{ArrowNotch}{pst-node}
1109 &
1110 \BSS{ArrowNotch}[arrowscale=10]\AC{{\red A}}\AC{0}\AC{<}\AC{V}
1111 \\
1112 \BS{psline}[arrowscale=5]\AC{-D>}(X)(A0)
1113 &
1114 \BS{psline}[arrowscale=5]\AC{-D>}(V)(A0)
1115
1116 \\ \hline
1117 \begin{psgraph}[axesstyle=none,xticksize=0.5 0.6 ,yticksize=0.5 0.6 , subticks=0](0.8,0.8)(.9,.95){5cm}{5cm}
1118 \psset{algebraic}
1119 \parametricplot[plotpoints=200]{1}{1.1}{sin(t)|sin(2*t)}
1120 \curvepnodes[plotpoints=100]{1}{1.3}{sin(t)|sin(2*t)}{A}
1121 \ArrowNotch[arrowscale=10]{A}{20}{>}{X}
1122 \psline[linecolor=red,arrowscale=5]{-D>}(X)(A20)
1123 \psdots[dotstyle=*](X) \uput[-135](X){X}
1124 \psdots[dotstyle=*](A20) \uput[-135](A20){A20}
1125 \end{psgraph}
1126 &
1127 \begin{psgraph}[axesstyle=none,xticksize=0.5 0.6 ,yticksize=0.5 0.6 , subticks=0](0.8,0.8)(.9,.95){5cm}{5cm}
1128 \psset{algebraic}
1129 \parametricplot[plotpoints=200]{1}{1.1}{sin(t)|sin(2*t)}
1130 \curvepnodes[plotpoints=100]{1}{1.3}{sin(t)|sin(2*t)}{A}
1131 \ArrowNotch[arrowscale=10]{A}{20}{<}{V}
1132 \psline[linecolor=red,arrowscale=5]{-D>}(V)(A20)
1133 \psdots[dotstyle=*](V) \uput[-135](V){V}
1134 \psdots[dotstyle=*](A20) \uput[-135](A20){A20}
1135 \end{psgraph}
1136 \\ \hline
1137 \BSS{ArrowNotch}[arrowscale=10]\AC{{\red A}}\AC{0}\AC{>}\AC{X}
1138 &
1139 \BSS{ArrowNotch}[arrowscale=10]\AC{{\red A}}\AC{0}\AC{<}\AC{V}
1140 \\
1141 \BS{psline}[arrowscale=5]\AC{-D>}(X)(A0)
1142 &
1143 \BS{psline}[arrowscale=5]\AC{-D>}(V)(A0)
1144 \\ \hline
1145 \end{tabular}
1146
1147
1148
1149 \subsection{Placement d'une étiquette à une distance donnée avec nlput }
1150 \SbSSCT{Placement d'une étiquette à une distance donnée avec nlput }{nlput}
1151
1152 \begin{tabular}{|c|} \hline
1153 \begin{psgraph}[axesstyle=none,xticksize=0 2cm,yticksize=0 6cm,subticks=0](0,0)(6,2){6cm}{2cm}
1154 \pnode(1,1){B}\pnode(5,1){C}
1155 \nlput(B)(C){1cm}{Texte}
1156 \psdots[dotstyle=*,linecolor=blue](B) \nput{90}{B}{B}
1157 \psdots[dotstyle=*,linecolor=blue](C) \nput{90}{C}{C}%
1158 \end{psgraph}
1159 \\ \hline
1160 \BSS{nlput}(B)(C)\AC{{\red 1cm}}\AC{Texte} \BSI{nlput}{pst-node}
1161 \\ \hline
1162 \end{tabular}
1163
1164 \bigskip
1165
1166
1167 \begin{tabular}{|c|c|c|} \hline
1168 \multicolumn{3}{|c|}{ \BSS{nlput}[\RDD{nrot}=\xx U](B)(C)\AC{1cm}\AC{\BS{red} Texte} \RDI{nrot}{pst-node}} \\ \hline
1169 \begin{pspicture}(5,2)
1170 \pnode(0,0){A}
1171 \pnode(4,2){B}
1172 \ncline{A}{B}
1173 \nlput[nrot=:U](A)(B){1cm}{\red Texte}
1174 \end{pspicture}
1175 &
1176 \begin{pspicture}(5,2)
1177 \pnode(0,0){A}
1178 \pnode(4,2){B}
1179 \ncline{A}{B}
1180 \nlput[nrot=:D](A)(B){1cm}{\red Texte}
1181 \end{pspicture}
1182 &
1183 \begin{pspicture}(5,2)
1184 \pnode(0,0){A}
1185 \pnode(4,2){B}
1186 \ncline{A}{B}
1187 \nlput[nrot=90](A)(B){1cm}{\red Texte}
1188 \end{pspicture}
1189 \\ \hline
1190 nrot=\xx U & nrot=\xx U & nrot=90
1191 \\ \hline
1192 \begin{pspicture}(5,2)
1193 \pnode(0,0){A}
1194 \pnode(4,2){B}
1195 \ncline{A}{B}
1196 \nlput[nrot=:L](A)(B){1cm}{\red Texte}
1197 \end{pspicture}
1198 &
1199 \begin{pspicture}(5,2)
1200 \pnode(0,0){A}
1201 \pnode(4,2){B}
1202 \ncline{A}{B}
1203 \nlput[nrot=:R](A)(B){1cm}{\red Texte}
1204 \end{pspicture}
1205 &
1206 \begin{pspicture}(5,2)
1207 \pnode(0,0){A}
1208 \pnode(4,2){B}
1209 \ncline{A}{B}
1210 \nlput(A)(B){1cm}{\red Texte}
1211 \end{pspicture}
1212 \\ \hline
1213 nrot=\xx L & nrot=\xx R & sans paramètre
1214 \\ \hline
1215 \end{tabular}
1216
1217