Can someone interpret this please !
Can somwone interpret this in to non -c pseudo code or vb code please
int pnpoly(int npol, float *xp, float *yp, float x, float y)
{
int i, j, c = 0;
for (i = 0, j = npol-1; i < npol; j = i++) {
if ((((yp<=y) && if (y))) &&
(x < (xp[j] - xp) * (y - yp) / (yp[j] - yp) + xp))
c = !c;
}
return c;
}
</i>
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement