47 if ((p->
p.
x == q->
p.
x) && (p->
p.
y == q->
p.
y))
50 x0 = ((double) (p->
p.
x)) - ((
double) (o->
x));
51 y0 = ((double) (p->
p.
y)) - ((
double) (o->
y));
52 x1 = ((double) (q->
p.
x)) - ((
double) (o->
x));
53 y1 = ((double) (q->
p.
y)) - ((
double) (o->
y));
114 static void printV(
PtItem * vp)
117 fprintf(stderr,
"<empty>\n");
122 fprintf(stderr,
"(%.16f,%.16f)\n", vp->
p.
x, vp->
p.
y);
127 static void error(
Info_t * ip,
Site *
s,
double x,
double y)
130 "Unsorted vertex list for site %d (%.16f,%.16f), pt (%f,%f)\n",
145 while (next !=
NULL) {
146 if (compare(origin, vp, next) <= 0) {
150 fprintf(stderr,
"(%.16f,%.16f) > (%.16f,%.16f)\n",
151 vp->
p.
x, vp->
p.
y, next->
p.
x, next->
p.
y);
177 cmp = compare(origin, &tmp, curr);
191 while ((cmp = compare(origin, &tmp, curr)) > 0) {
void * getfree(Freelist *)
void addVertex(Site *s, double x, double y)
void freeinit(Freelist *, int)