16 static int pnpoly(
int npol,
int *xp,
int *yp,
int x,
int y)
20 for (i = 0, j = npol - 1; i < npol; j = i++) {
21 if ((((yp[i] <= y) && (y < yp[j])) || ((yp[j] <= y) && (y < yp[i]))) &&
22 (
x < (xp[j] - xp[i]) * (y - yp[i]) / (yp[j] - yp[i]) + xp[i]))
30 struct MapPoly *poly, *test_poly;
45 if (poly == test_poly) {
50 for (i = 0; i < poly->
num_pts && inside; i++) {
69 fprintf(
html.
output,
"#base _base_\n#default _default_\n");
91 for (i = 0; i < poly->
num_pts; i++) {
101 for (i = 0; i < poly->
num_pts; i++) {
111 "<AREA SHAPE=\"POLY\"\n HREF=\"%s\"\n ALT=\"%s\"\n "
114 for (i = 0; i < poly->
num_pts; i++) {
145 "<AREA SHAPE=\"RECT\" NOHREF COORDS=\"%d,%d %d,%d\">\n", 0, 0,
void HTML_Graph_close(void)
struct MapPoly * next_poly