File: pnpoly.h

package info (click to toggle)
astrometry.net 0.93%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 19,372 kB
  • sloc: ansic: 163,192; python: 18,357; makefile: 1,522; sh: 138; cpp: 78; pascal: 67; awk: 56; perl: 9
file content (9 lines) | stat: -rw-r--r-- 262 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
/*
  See the file "pnpoly.c" for copyright and license information.
*/

/*
  Returns 1 if the point (x,y) is inside the polygon defined by the set of points
  (xp,yp) of length "npol".
 */
int point_in_poly(double* xp, double* yp, int npol, double x, double y);