Debian Codegraph @

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

raw
1
2 \SbSSCT{Systèmes de coordonnées}{Coordinate systems}
3
4 \SbSbSSCT{Par défaut}{Default}
5 \emph{\TFRGB{coordonnées cartésiennes}{Cartesian coordinates}} : {\red(x,y)} . ( \TFRGB{l'origine est la position actuelle}{the origin is the current position})
6
7
8
9 \SbSbSSCT{Autres systèmes de coordonnées}{Other coordinate systems}
10
11 \begin{itemize}
12 \item \TFRGB{Activation avec la commande}{Activated with the command} \BSS{SpecialCoor}
13 \item \TFRGB{Désactivation par la commande}{Desactivated with the command} \BSS{NormalCoor}
14 \end{itemize}
15
16
17
18
19
20 \psset{yunit=0.7cm,xunit=0.7cm,runit=.7cm}
21
22 \psset{axesstyle=none,xticksize=3,yticksize=3}
23
24 \bigskip
25 \begin{tabular}{|c|c|c|c|} \hline
26 \multicolumn{4}{|c|}{ \BS{dotnode*}[dotstyle=*]({\red 2;60})\AC{A}\ \hspace{0.5cm} \BS{nput*}\AC{45}\AC{A}\AC{A} } \\ \hline
27 \TFRGB{polaire}{polar} & \TFRGB{calculé}{calculated} \footnotemark[1]& (coor1|coor2)& (coor1|coor2) \\ \hline
28 \begin{pspicture}(-.5,-.5)(3.5,3.5)
29 \psaxes(3,3)
30 \dotnode*[dotstyle=*](2;60){A}\nput*{45}{A}{A}
31 \end{pspicture}
32 &
33 \begin{pspicture}(-.5,-.5)(3.5,3.5)
34 \psaxes(3,3)
35 \dotnode*[dotstyle=*](!3 sqrt 2){A}\nput*{45}{A}{A}
36 \end{pspicture}
37 &
38 \begin{pspicture}(-.5,-.5)(3.5,3.5)
39 \psaxes(3,3)
40 \dotnode*[dotstyle=*](2;30|2;60){A}\nput*{45}{A}{A}
41 \end{pspicture}
42 &
43 \begin{pspicture}(-.5,-.5)(3.5,3.5)
44 \psaxes(3,3)
45 \dotnode*[dotstyle=*](2,.5){B} \nput*{45}{B}{B}
46 \dotnode*[dotstyle=*](1,2){C} \nput*{45}{C}{C}
47 \dotnode*[dotstyle=*](B|C){A}\nput*{45}{A}{A}
48 \end{pspicture}
49 \\ \hline
50 ({\red 2;60}) & ({\red !3 sqrt} 2) & ({\red 2;30|2;60})& ({\red B|C}) \\ \hline
51 \end{tabular}
52 \footnotetext[1]{\TFRGB{formule de calcul en langage PostScript (voir \pageref{postcript})}{formula in the PostScript language} }
53
54
55 %-----------------------------------------------
56
57 \SbSbSSCT{Position relative}{Relative position}
58
59 \psset{yunit=0.7cm,xunit=0.7cm,runit=.7cm}
60
61 \psset{axesstyle=none,xticksize=3,yticksize=3}
62
63 \begin{tabular}{|c|c|c|c|} \hline
64 \multicolumn{4}{|c|}{ \BS{dotnode*}[dotstyle=*,linecolor=red]([\RDD{nodesep}=1]B)\AC{A}\ \hspace{0.5cm} \BS{nput*}\AC{45}\AC{A}\AC{A} } \\ \hline
65 %\RDD{nodesep} & \RDD{offset} & {\red nodesep offset} & \RDD{angle} {\red nodesep}\\ \hline
66 \begin{pspicture}(-.5,-.5)(3.5,3.5)
67 \psaxes(3,3)
68 \pnode(1,1){B} \pscircle*(B){3pt} \nput{45}{B}{B}%
69 \dotnode*[dotstyle=*,linecolor=red]([nodesep=1]B){A} \nput*{45}{A}{A} %
70 \end{pspicture}
71 &
72 \begin{pspicture}(-.5,-.5)(3.5,3.5)
73 \psaxes(3,3)
74 \pnode(1,1){B} \pscircle*(B){3pt} \nput{45}{B}{B}%
75 \dotnode*[dotstyle=*,linecolor=red]([offset=1]B){A}\nput*{45}{A}{A} %
76 \end{pspicture}
77 &
78 \begin{pspicture}(-.5,-.5)(3.5,3.5)
79 \psaxes(3,3)
80 \pnode(1,1){B} \pscircle*(B){3pt} \nput{45}{B}{B}%
81 \dotnode*[dotstyle=*,linecolor=red]([nodesep=1,offset=1]B){A}\nput*{45}{A}{A}%
82 \end{pspicture}
83 &
84 \begin{pspicture}(-.5,-.5)(3.5,3.5)
85 \psaxes(3,3)
86 \pnode(1,1){B} \pscircle*(B){3pt} \nput{45}{B}{B}%
87 \dotnode*[dotstyle=*,linecolor=red]([angle=25,nodesep=1]B){A}\nput*{45}{A}{A}%
88 \end{pspicture}
89 \\ \hline
90 ([\RDD{nodesep}=1]B) &([\RDD{offset}=1]B){A}& ([\RDD{nodesep}=1,\RDD{offset}=1]B) & ([\RDD{angle}=25,\RDD{nodesep}=1]B)\\ \hline
91 \end{tabular}
92
93
94 \newpage
95 %---------------------------------------------
96
97 \SbSSCT{Modification des unités par défaut}{Changing default units}
98
99 \SbSbSSCT{Modification des unités des longueurs }{Changing the units of length}
100
101 \begin{tabular}{|c|c|c|c|} \hline
102 \multicolumn{4}{|c|}{ \BSS{psset}\AC{\RDD{unit}=0.5cm}\hspace{0.5cm} \BS{psframe}(2,2) \hspace{0.5cm} \BS{psdots}(1,1) \hspace{0.5cm}\BS{pscircle}(1,1)\AC{1} } \\ \hline
103
104 \begin{psgraph}[axesstyle=none,xticksize=0 2,yticksize=0 2,subticks=0,shift=*](0,0)(2,2){2cm}{2cm}
105 \psset{unit=.5cm}
106 \psframe[linewidth=2pt](2,2)
107 \pscircle[linecolor=red](1,1){1}
108 \psdots[linecolor=red](1,1)
109 \end{psgraph}
110 \psset{unit=1cm}
111 &
112 \begin{psgraph}[axesstyle=none,xticksize=0 2,yticksize=0 2,subticks=0,shift=*](0,0)(2,2){2cm}{2cm}
113 \psset{xunit=.5cm}
114 \psframe[linewidth=2pt](2,2)
115 \pscircle[linecolor=red](1,1){1}
116 \psdots[linecolor=red](1,1)
117 \end{psgraph}
118 \psset{unit=1cm}
119 &
120 \begin{psgraph}[axesstyle=none,xticksize=0 2,yticksize=0 2,subticks=0,shift=*](0,0)(2,2){2cm}{2cm}
121 \psset{yunit=.5cm}
122 \psframe[linewidth=2pt](2,2)
123 \pscircle[linecolor=red](1,1){1}
124 \psdots[linecolor=red](1,1)
125 \end{psgraph}
126 \psset{unit=1cm}
127 &
128 \begin{psgraph}[axesstyle=none,xticksize=0 2,yticksize=0 2,subticks=0,shift=*](0,0)(2,2){2cm}{2cm}
129 \psset{runit=.5cm}
130 \psframe[linewidth=2pt](2,2)
131 \pscircle[linecolor=red](1,1){1}
132 \psdots[linecolor=red](1,1)
133 \end{psgraph}
134 \psset{unit=1cm}
135 \\ \hline
136 \RDD{unit}= 0.5cm & \RDD{xunit}= 0.5cm & \RDD{yunit}= 0.5cm & \RDD{runit}= 0.5cm\\
137 \hline
138 \multicolumn{4}{|c|}{ \dft{} : unit= xunit = yunit = runit = 1cm } \\ \hline
139 \end{tabular}
140
141
142
143 %--------------------------------------------------
144
145 \SbSbSSCT{Modification de l'unité des angles}{Changing the unit of angles}
146
147 \begin{tabular}{|c|c|} \hline
148 \TFRGB{angle en pourcentage}{angle expressed as a percentage} & \TFRGB{angles en radians}{angles in radians}
149 \\ \hline
150 \begin{psgraph}[axesstyle=none,xticksize=0 4,yticksize=0 4,subticks=0,shift=*](-2,-2)(2,2){4cm}{4cm}
151 \degrees[1]
152 \pswedge*[linecolor=blue](0,0){2}{-.25}{.50}
153 \end{psgraph}
154 &
155 \begin{psgraph}[axesstyle=none,xticksize=0 4,yticksize=0 4,subticks=0,shift=*](-2,-2)(2,2){4cm}{4cm}
156 \radians
157 \pswedge*[linecolor=blue](0,0){2}{-1.57}{\psPi}
158 \end{psgraph}
159 \\ \hline
160 \BSS{degrees}[1] & \BSS{radians} \\
161 \BS{pswedge*}(0,0){2}\AC{{\red -0.25}}\AC{{\red 0.50}} &
162 \BS{pswedge*}(0,0){2}\AC{{\red 1.57}}\AC{{\red \BS{psPi}}}\\
163 \hline
164 \end{tabular}
165
166
167 \psset{yunit=1cm,xunit=1cm,runit=1cm}
168
169 \psset{axesstyle=none}
170
171 %--------------------------------------------------------
172 \SbSSCT{Changement d'origine }{Change of origin}
173
174 \begin{tabular}{|c|c|} \hline
175 \begin{psgraph}[axesstyle=none,xticksize=0 4,yticksize=0 6,subticks=0,shift=*](0,0)(6,4){6cm}{4cm}
176 \psframe[linewidth=2pt](4,2)
177 \psframe[linewidth=2pt,linecolor=red,origin={1,1}](4,2)
178 \end{psgraph}
179 &
180 \parbox[c]{7cm}{
181 \BS{psframe}[linewidth=2pt](4,2) \\
182 \BS{psframe}[linewidth=2pt,linecolor=red,\\
183 \RDD{origin}=\AC{1,1}](4,2)
184 }
185 \\ \hline
186 \end{tabular}
187
188
189
190 \psset{axesstyle=axes,ticksize=3pt}
191
192 \SbSSCT{Permutation des axes}{Permutation of the axes}
193
194
195 \begin{tabular}{|c|c|}\hline
196 \multicolumn{2}{|c|}{\BS{psset}\AC{\RDD{swapaxes}=true} \BS{psframe}(2,1)} \\
197 \hline
198 \psset{swapaxes=true}
199 \begin{pspicture}(2,2.2)
200 \psframe[linewidth=2pt](2,1)
201 \end{pspicture}
202 &
203 \psset{swapaxes=false}
204 \begin{pspicture}(2,2.2)
205 \psframe[linewidth=2pt](2,1)
206 \end{pspicture} \\
207 \hline \BS{}psset\AC{\RDD{swapaxes}=true} & \BS{}psset\AC{{\red swapaxes}=false}\\
208 & ({\blue \dft{} }) \\
209 \hline
210 \end{tabular}