aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/plot/libplot/poly.c
blob: e3ff734599667aa39bca40ea0d7dc796b269b28d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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);
		}
	}
}