Refactor pnpoly function in Cython and add to shared package

This commit is contained in:
Johannes Schönberger
2012-08-21 15:43:26 +02:00
parent a08779e06a
commit c471d475eb
8 changed files with 45 additions and 92 deletions
+7
View File
@@ -0,0 +1,7 @@
cdef inline unsigned char point_in_polygon(int nr_verts, double *xp, double *yp,
double x, double y)
cdef void points_in_polygon(int nr_verts, double *xp, double *yp,
int nr_points, double *x, double *y,
unsigned char *result)