81 double S,
double E,
double W)
88 if ((n = window->north) > N)
90 if ((s = window->south) < S)
95 V = (N < window->north && N > window->south);
104 if (window->proj == PROJECTION_LL) {
106 while (E + shift > window->east)
108 while (E + shift < window->west)
115 if ((e = window->east) > E)
117 if ((w = window->west) < W)
121 H = (E > window->west && E < window->east);
126 if (window->proj == PROJECTION_LL) {
128 while (W + shift < window->west)
130 while (W + shift > window->east)
135 if ((e = window->east) > E)
137 if ((w = window->west) < W)
147 return (
H * V) / ((N - S) * (E - W));
double G_window_percentage_overlap(const struct Cell_head *window, double N, double S, double E, double W)
Determines percentage of box is contained in the window.
int G_window_overlap(const struct Cell_head *window, double N, double S, double E, double W)
Determines if a box overlays a map window.