#include <stdio.h>
+#include <assert.h>
#include "geom.h"
#include "dynarr.h"
return t;
}
+int init_poly(struct poly *p)
+{
+ p->verts = dynarr_alloc(0, sizeof *p->verts);
+ assert(p->verts);
+ return p->verts ? 0 : -1;
+}
/* returns:
* 1 -> both inside