• Main Page
  • Related Pages
  • Data Structures
  • Files
  • File List
  • Globals

wind_in.c

Go to the documentation of this file.
00001 
00015 #include <grass/gis.h>
00016 
00026 int G_point_in_region(double easting, double northing)
00027 {
00028     struct Cell_head window;
00029 
00030     G_get_window(&window);
00031 
00032     return G_point_in_window(easting, northing, &window);
00033 }
00034 
00035 
00036 
00051 int G_point_in_window(double easting, double northing,
00052                       const struct Cell_head *window)
00053 {
00054 
00055     if (easting > window->east || easting < window->west ||
00056         northing > window->north || northing < window->south)
00057         return FALSE;
00058 
00059     return TRUE;
00060 }

Generated on Thu Dec 9 2010 20:46:05 for GRASS Programmer's Manual by  doxygen 1.7.2