%% syntaxe : x0 y0 r cercle
/cercle {
3 dict begin
/r@y@n exch def
/y@ exch def
/x@ exch def
0 360 {cos r@y@n mul x@ add} {sin r@y@n mul y@ add} Courbeparam
end
} def
%% syntaxe : x0 y0 r cercle_
/cercle_ {
3 dict begin
/r@y@n exch def
/y@ exch def
/x@ exch def
x@ r@y@n add y@ smoveto
0 360 {cos r@y@n mul x@ add} {sin r@y@n mul y@ add} Courbeparam_
end
} def
%% syntaxe : x0 y0 r cercle-_
/cercle-_ {
3 dict begin
/r@y@n exch def
/y@ exch def
/x@ exch def
x@ r@y@n add y@ smoveto
360 0 {cos r@y@n mul x@ add} {sin r@y@n mul y@ add} Courbeparam_
end
} def
%% syntaxe : x0 y0 r cercle*
/cercle* {
1 dict begin
/startest true def
cercle
end
} def
%% syntaxe : alpha beta x0 y0 r Cercle
/Cercle {
4 dict begin
dup isstring
{/option exch def}
if
/r@y@n exch def
/y@ exch def
/x@ exch def
{cos r@y@n mul x@ add} {sin r@y@n mul y@ add}
currentdict /option known
{option}
if
Courbeparam
end
} def
%% syntaxe : alpha beta x0 y0 r Cercle_
/Cercle_ {
3 dict begin
/r@y@n exch def
/y@ exch def
/x@ exch def
{cos r@y@n mul x@ add} {sin r@y@n mul y@ add} Courbeparam_
end
} def
%% syntaxe : alpha beta x0 y0 r Cercle
/Cercle* {
1 dict begin
/startest {true} def
Cercle
end
} def
|