Sign in
plan9port
/
plan9
/
c819ee640c1e0369b7ae513985b8bb44e154c0a1
/
.
/
src
/
cmd
/
plot
/
libplot
/
poly.c
blob: e3ff734599667aa39bca40ea0d7dc796b269b28d [
file
] [
log
] [
blame
]
#include
"mplot.h"
void
plotpoly
(
int
num
[],
double
*
ff
[]){
double
*
xp
,
*
yp
,
**
fp
;
int
i
,
*
n
;
n
=
num
;
fp
=
ff
;
while
((
i
=
*
n
++)){
xp
=
*
fp
++;
yp
=
xp
+
1
;
move
(*
xp
,
*
yp
);
while
(--
i
){
xp
+=
2
;
yp
+=
2
;
vec
(*
xp
,
*
yp
);
}
}
}