20#include <lal/LALInspiralBank.h>
52 for (
i = 0, j =
n-1;
i <
n; j =
i++) {
53 if ((((inputy[
i] <=
y) && (
y < inputy[j])) ||
54 ((inputy[j] <=
y) && (
y < inputy[
i]))) &&
55 (
x < (inputx[j] - inputx[
i]) * (
y - inputy[
i]) / (inputy[j] - inputy[
i]) + inputx[
i]))
#define ATTATCHSTATUSPTR(statusptr)
#define ASSERT(assertion, statusptr, code, mesg)
#define DETATCHSTATUSPTR(statusptr)
#define INITSTATUS(statusptr)
#define RETURN(statusptr)
void LALInsidePolygon(LALStatus *status, REAL4 *inputx, REAL4 *inputy, INT4 n, REAL4 x, REAL4 y, INT4 *valid)
Module to check whether a point with coordinates (x,y) is inside a polygon defined by the vectors (vx...
#define LALINSPIRALBANKH_ENULL
Null pointer.