GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-b4e4cb0fe9
|
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 | ||
) |
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 |