37 #define NEW(p,type) if ((p=(type *) malloc (sizeof(type))) == NULL) {exit(EXIT_FAILURE);}
38 #define FREE(p) if (p) {free ((void *) p); p = NULL;}
39 #define SWAP(t,x,y) {t = x; x = y; y = t;}
49 typedef struct _structPoint t_structPoint;
50 typedef t_structPoint *t_point;
59 typedef struct _cell t_cell;
60 typedef t_cell *t_stack;
69 t_structPoint point[64];
75 void Swap(t_point point,
int i,
int j);
76 void Copy(t_point point,
int i,
int j);
77 void Delete(t_point point,
int i);
78 int Compare(
const void *tpi,
const void *tpj);
80 t_stack Graham(t_H2D);
81 t_stack Pop(t_stack s);
82 t_stack Push(t_point point, t_stack top);
double t_xy[2]
Data structures to store a 2 dimensional convex hull.