35 if (p.
x == q.
x && p.
y == q.
y)
38 x0 = (double)p.
x - (
double)o.
x;
39 y0 = (double)p.
y - (
double)o.
y;
40 x1 = (double)q.
x - (
double)o.
x;
41 y1 = (double)q.
y - (
double)o.
y;
104 const Point origin_point =
s->coord;
108 const Point tmp = {.
x = x, .y = y};
111 for (i = 0; i < ip->
n_verts; ++i) {
122 sizeof(ip->
verts[0]));
Memory allocation wrappers that exit on failure.
static void * gv_recalloc(void *ptr, size_t old_nmemb, size_t new_nmemb, size_t size)
static int cmp(const void *key, const void *candidate)
static int compare(Point o, Point p, Point q)
Info_t * nodeInfo
array of node info
void addVertex(Site *s, double x, double y)
insert vertex into sorted list
size_t n_verts
number of elements in verts
Point * verts
sorted list of vertices of voronoi polygon