18 #include <grass/gis.h>
19 #include <grass/Vect.h>
23 double end_x,
double beg_y,
double end_y,
double Y)
27 b = (end_x - beg_x) / (end_y - beg_y);
28 a = beg_x - b * beg_y;
35 G_debug(3,
"BBOX: (x,y) (%lf, %lf)\n", x, y);
36 G_debug(3,
"NSEW: %lf, %lf, %lf, %lf\n", Area->N, Area->S, Area->E,
double dig_x_intersect(double beg_x, double end_x, double beg_y, double end_y, double Y)
int dig_in_area_bbox(P_AREA *Area, double x, double y)
int G_debug(int level, const char *msg,...)
Print debugging message.