Advertisement

Can someone interpret this please !

Started by March 02, 2000 02:54 AM
0 comments, last by mmrpg 24 years, 7 months ago
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; } " hmm snippets on these are hard to post here </i>
Bah.. it still isnt posting write

its suppose to be a formula for finding if a point exists in a polygon.

Anyone know a formula for this ?

This topic is closed to new replies.

Advertisement