#include <grass/gis.h>
Go to the source code of this file.
Functions | |
int | G_pole_in_polygon (const double *x, const double *y, int n) |
pole in polygon |
int G_pole_in_polygon | ( | const double * | x, |
const double * | y, | ||
int | n | ||
) |
pole in polygon
For latitude-longitude coordinates, this routine determines if the polygon defined by the n coordinate vertices x,y contains one of the poles. Returns -1 if it contains the south pole; 1 if it contains the north pole; 0 if it contains neither pole. Note. Use this routine only if the projection is PROJECTION_LL.
x | |
y | |
n |
Definition at line 38 of file pole_in_poly.c.