15 #include <grass/gis.h> 
   28     struct Cell_head window;
 
   52                       const struct Cell_head *
window)
 
   55     if (easting > window->east || easting < window->west ||
 
   56         northing > window->north || northing < window->south)
 
int G_point_in_window(double easting, double northing, const struct Cell_head *window)
Returns TRUE if coordinate is within the given map region. 
int G_get_window(struct Cell_head *window)
read the database region 
int G_point_in_region(double easting, double northing)
Returns TRUE if coordinate is within the current region settings.