|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-b0a6d7703c
|
GIS Library - Window box functions. More...
#include <grass/gis.h>
Go to the source code of this file.
Functions | |
| void | G_adjust_window_to_box (const struct Cell_head *src, struct Cell_head *dst, int rows, int cols) |
| Adjusts window to a rectangular box. | |
GIS Library - Window box functions.
SPDX-FileCopyrightText: 2001-2014 GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later
Definition in file wind_2_box.c.
| void G_adjust_window_to_box | ( | const struct Cell_head * | src, |
| struct Cell_head * | dst, | ||
| int | rows, | ||
| int | cols | ||
| ) |
Adjusts window to a rectangular box.
Creates a new window dst from a window src which fits into the rectangular box with dimensions rows by cols.
| [in] | src | source window |
| [in,out] | dst | destination window |
| [in] | rows | number of rows in box |
| [in] | cols | number of columns in box |
Definition at line 28 of file wind_2_box.c.
References Cell_head::cols, Cell_head::east, Cell_head::ew_res, Cell_head::north, Cell_head::ns_res, Cell_head::rows, Cell_head::south, and Cell_head::west.