GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Point in region functions. More...
#include <grass/gis.h>
Go to the source code of this file.
Functions | |
int | G_point_in_region (double easting, double northing) |
Returns TRUE if coordinate is within the current region settings. More... | |
int | G_point_in_window (double easting, double northing, const struct Cell_head *window) |
Returns TRUE if coordinate is within the given map region. More... | |
Point in region functions.
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file wind_in.c.
int G_point_in_region | ( | double | easting, |
double | northing | ||
) |
Returns TRUE if coordinate is within the current region settings.
easting | |
northing |
Definition at line 26 of file wind_in.c.
References G_get_window(), and G_point_in_window().
int G_point_in_window | ( | double | easting, |
double | northing, | ||
const struct Cell_head * | window | ||
) |
Returns TRUE if coordinate is within the given map region.
Use instead of G_point_in_region() when used in a loop (it's more efficient to only fetch the window once) or for checking if a point is in another region (e.g. contained with a raster map's bounds).
easting | |
northing | |
window |
Definition at line 51 of file wind_in.c.
Referenced by G_point_in_region().