GRASS Programmer's Manual
6.5.svn(2014)-r66266
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
address.c
Go to the documentation of this file.
1
15
#include <grass/segment.h>
16
17
31
int
segment_address
(
const
SEGMENT * SEG,
int
row,
int
col,
int
*
n
,
int
*index)
32
{
33
*n = row / SEG->srows * SEG->spr + col / SEG->scols;
34
*index = (row % SEG->srows * SEG->scols + col % SEG->scols) * SEG->len;
35
36
return
0;
37
}
segment_address
int segment_address(const SEGMENT *SEG, int row, int col, int *n, int *index)
Definition:
address.c:31
n
int n
Definition:
dataquad.c:291
lib
segment
address.c
Generated on Sat Jan 2 2016 01:46:46 for GRASS Programmer's Manual by
1.8.5