summaryrefslogtreecommitdiff
path: root/info/visualpstricks/Source/coord.tex
blob: bebe46114f8eaeb583855b0eaca3f101d742d384 (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

\SbSSCT{Systèmes de coordonnées}{Coordinate systems}

\SbSbSSCT{Par défaut}{Default}
\emph{\TFRGB{coordonnées cartésiennes}{Cartesian coordinates}} :  {\red(x,y)} . ( \TFRGB{l'origine est la position actuelle}{the origin is the current position})



\SbSbSSCT{Autres systèmes de coordonnées}{Other coordinate systems}

\begin{itemize}
\item \TFRGB{Activation avec la commande}{Activated with the command}  \BSS{SpecialCoor}
\item  \TFRGB{Désactivation par la commande}{Desactivated with the command} \BSS{NormalCoor}
\end{itemize}





\psset{yunit=0.7cm,xunit=0.7cm,runit=.7cm}

\psset{axesstyle=none,xticksize=3,yticksize=3}

\bigskip
\begin{tabular}{|c|c|c|c|} \hline 
 \multicolumn{4}{|c|}{ \BS{dotnode*}[dotstyle=*]({\red 2;60})\AC{A}\ \hspace{0.5cm} \BS{nput*}\AC{45}\AC{A}\AC{A} } \\ \hline
\TFRGB{polaire}{polar} & \TFRGB{calculé}{calculated} \footnotemark[1]& (coor1|coor2)& (coor1|coor2) \\ \hline 
\begin{pspicture}(-.5,-.5)(3.5,3.5) 
\psaxes(3,3)
\dotnode*[dotstyle=*](2;60){A}\nput*{45}{A}{A}
\end{pspicture} 
& 
\begin{pspicture}(-.5,-.5)(3.5,3.5) 
\psaxes(3,3)
\dotnode*[dotstyle=*](!3 sqrt 2){A}\nput*{45}{A}{A}
\end{pspicture}  
& 
\begin{pspicture}(-.5,-.5)(3.5,3.5) 
\psaxes(3,3)
\dotnode*[dotstyle=*](2;30|2;60){A}\nput*{45}{A}{A}
\end{pspicture}   
& 
\begin{pspicture}(-.5,-.5)(3.5,3.5) 
\psaxes(3,3)
\dotnode*[dotstyle=*](2,.5){B} \nput*{45}{B}{B}
\dotnode*[dotstyle=*](1,2){C} \nput*{45}{C}{C}
\dotnode*[dotstyle=*](B|C){A}\nput*{45}{A}{A}
\end{pspicture} 
\\  \hline 
({\red 2;60})  & ({\red !3 sqrt} 2) & ({\red 2;30|2;60})& ({\red B|C}) \\ \hline 
\end{tabular} 
\footnotetext[1]{\TFRGB{formule de calcul en langage PostScript (voir \pageref{postcript})}{formula in the PostScript language} }


%-----------------------------------------------

\SbSbSSCT{Position relative}{Relative position}
 
\psset{yunit=0.7cm,xunit=0.7cm,runit=.7cm}

\psset{axesstyle=none,xticksize=3,yticksize=3}

\begin{tabular}{|c|c|c|c|} \hline 
 \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
%\RDD{nodesep} & \RDD{offset} & {\red nodesep offset} & \RDD{angle} {\red nodesep}\\ \hline 
\begin{pspicture}(-.5,-.5)(3.5,3.5) 
\psaxes(3,3)
\pnode(1,1){B} \pscircle*(B){3pt} \nput{45}{B}{B}%
\dotnode*[dotstyle=*,linecolor=red]([nodesep=1]B){A} \nput*{45}{A}{A} %
\end{pspicture} 
& 
\begin{pspicture}(-.5,-.5)(3.5,3.5) 
\psaxes(3,3)
\pnode(1,1){B} \pscircle*(B){3pt} \nput{45}{B}{B}%
\dotnode*[dotstyle=*,linecolor=red]([offset=1]B){A}\nput*{45}{A}{A} %
\end{pspicture}  
& 
\begin{pspicture}(-.5,-.5)(3.5,3.5) 
\psaxes(3,3)
\pnode(1,1){B} \pscircle*(B){3pt} \nput{45}{B}{B}%
\dotnode*[dotstyle=*,linecolor=red]([nodesep=1,offset=1]B){A}\nput*{45}{A}{A}%
\end{pspicture} 
& 
\begin{pspicture}(-.5,-.5)(3.5,3.5) 
\psaxes(3,3)
\pnode(1,1){B} \pscircle*(B){3pt} \nput{45}{B}{B}%
\dotnode*[dotstyle=*,linecolor=red]([angle=25,nodesep=1]B){A}\nput*{45}{A}{A}%
\end{pspicture} 
\\  \hline 
([\RDD{nodesep}=1]B) &([\RDD{offset}=1]B){A}& ([\RDD{nodesep}=1,\RDD{offset}=1]B) & ([\RDD{angle}=25,\RDD{nodesep}=1]B)\\ \hline 
\end{tabular} 


\newpage
%---------------------------------------------

\SbSSCT{Modification des unités par défaut}{Changing default units}

\SbSbSSCT{Modification des unités des longueurs }{Changing the units of length}

\begin{tabular}{|c|c|c|c|} \hline 
 \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 

\begin{psgraph}[axesstyle=none,xticksize=0 2,yticksize=0 2,subticks=0,shift=*](0,0)(2,2){2cm}{2cm} 
\psset{unit=.5cm}
\psframe[linewidth=2pt](2,2)
\pscircle[linecolor=red](1,1){1}
\psdots[linecolor=red](1,1)
\end{psgraph}
\psset{unit=1cm}
&  
\begin{psgraph}[axesstyle=none,xticksize=0 2,yticksize=0 2,subticks=0,shift=*](0,0)(2,2){2cm}{2cm} 
\psset{xunit=.5cm}
\psframe[linewidth=2pt](2,2)
\pscircle[linecolor=red](1,1){1}
\psdots[linecolor=red](1,1)
\end{psgraph}
\psset{unit=1cm}
&
\begin{psgraph}[axesstyle=none,xticksize=0 2,yticksize=0 2,subticks=0,shift=*](0,0)(2,2){2cm}{2cm}  
\psset{yunit=.5cm}
\psframe[linewidth=2pt](2,2)
\pscircle[linecolor=red](1,1){1}
\psdots[linecolor=red](1,1)
\end{psgraph}
\psset{unit=1cm}
&  
\begin{psgraph}[axesstyle=none,xticksize=0 2,yticksize=0 2,subticks=0,shift=*](0,0)(2,2){2cm}{2cm}  
\psset{runit=.5cm}
\psframe[linewidth=2pt](2,2)
\pscircle[linecolor=red](1,1){1}
\psdots[linecolor=red](1,1)
\end{psgraph}   
\psset{unit=1cm}
\\ \hline  
\RDD{unit}= 0.5cm & \RDD{xunit}= 0.5cm & \RDD{yunit}= 0.5cm &  \RDD{runit}= 0.5cm\\ 
\hline 
 \multicolumn{4}{|c|}{ \dft{} :  unit= xunit = yunit = runit = 1cm } \\ \hline 
\end{tabular} 

  
 
%--------------------------------------------------
 
\SbSbSSCT{Modification de l'unité des angles}{Changing the unit of angles}

\begin{tabular}{|c|c|} \hline 
 \TFRGB{angle en pourcentage}{angle expressed as a percentage} & \TFRGB{angles en radians}{angles in radians} 
 \\ \hline
\begin{psgraph}[axesstyle=none,xticksize=0 4,yticksize=0 4,subticks=0,shift=*](-2,-2)(2,2){4cm}{4cm}  
\degrees[1]
\pswedge*[linecolor=blue](0,0){2}{-.25}{.50}
\end{psgraph}
&  
\begin{psgraph}[axesstyle=none,xticksize=0 4,yticksize=0 4,subticks=0,shift=*](-2,-2)(2,2){4cm}{4cm}  
\radians
\pswedge*[linecolor=blue](0,0){2}{-1.57}{\psPi}
\end{psgraph}
\\ \hline  
\BSS{degrees}[1] & \BSS{radians} \\ 
\BS{pswedge*}(0,0){2}\AC{{\red -0.25}}\AC{{\red 0.50}} &
\BS{pswedge*}(0,0){2}\AC{{\red 1.57}}\AC{{\red \BS{psPi}}}\\
\hline 
\end{tabular} 


\psset{yunit=1cm,xunit=1cm,runit=1cm}

\psset{axesstyle=none}

%--------------------------------------------------------
\SbSSCT{Changement d'origine }{Change of origin}

\begin{tabular}{|c|c|} \hline  
\begin{psgraph}[axesstyle=none,xticksize=0 4,yticksize=0 6,subticks=0,shift=*](0,0)(6,4){6cm}{4cm} 
\psframe[linewidth=2pt](4,2)
\psframe[linewidth=2pt,linecolor=red,origin={1,1}](4,2)
 \end{psgraph}
 &
\parbox[c]{7cm}{  
\BS{psframe}[linewidth=2pt](4,2) \\
\BS{psframe}[linewidth=2pt,linecolor=red,\\
\RDD{origin}=\AC{1,1}](4,2)
}
\\ \hline 
\end{tabular}



\psset{axesstyle=axes,ticksize=3pt}

\SbSSCT{Permutation des axes}{Permutation of the axes}


\begin{tabular}{|c|c|}\hline
\multicolumn{2}{|c|}{\BS{psset}\AC{\RDD{swapaxes}=true}  \BS{psframe}(2,1)} \\
\hline
\psset{swapaxes=true}
\begin{pspicture}(2,2.2)
 \psframe[linewidth=2pt](2,1)
\end{pspicture}
&
\psset{swapaxes=false}
\begin{pspicture}(2,2.2)
\psframe[linewidth=2pt](2,1)
\end{pspicture}  \\ 
\hline \BS{}psset\AC{\RDD{swapaxes}=true} &  \BS{}psset\AC{{\red swapaxes}=false}\\ 
& ({\blue \dft{} }) \\
\hline 
\end{tabular}