GRASS GIS 7 Programmer's Manual  7.5.svn(2018)-r72636
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
wind_2_box.c File Reference

GIS Library - Window box functions. More...

#include <grass/gis.h>
Include dependency graph for wind_2_box.c:

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. More...
 

Detailed Description

GIS Library - Window box functions.

(C) 2001-2014 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
GRASS GIS Development Team
Date
1999-2014

Definition in file wind_2_box.c.

Function Documentation

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.

Parameters
[in]srcsource window
[in,out]dstdestination window
[in]rowsnumber of rows in box
[in]colsnumber of columns in box
Returns

Definition at line 33 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.