Functions

pole_in_poly.c File Reference

#include <grass/gis.h>
Include dependency graph for pole_in_poly.c:

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

Function Documentation

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.

Parameters:
x
y
n
Returns:
int

Definition at line 38 of file pole_in_poly.c.