File: trans.h

package info (click to toggle)
grass 8.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 277,040 kB
  • sloc: ansic: 460,798; python: 227,732; cpp: 42,026; sh: 11,262; makefile: 7,007; xml: 3,637; sql: 968; lex: 520; javascript: 484; yacc: 450; asm: 387; perl: 157; sed: 25; objc: 6; ruby: 4
file content (52 lines) | stat: -rw-r--r-- 1,100 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
 *  Written by the GRASS Team,  02/16/90, -mh .
 */

/******************
 *  INCLUDES:       *
 *******************/

#include <stdio.h>

/******************
 *  DEFINES:       *
 *******************/

#define TRANS_MATRIX 0
#define TRANS_SHIFT  1

#define IDX_XSHIFT   0
#define IDX_YSHIFT   1
#define IDX_ZSHIFT   2
#define IDX_XSCALE   3
#define IDX_YSCALE   4
#define IDX_ZSCALE   5
#define IDX_ZROT     6

/******************
 *  GLOBALS:       *
 *******************/

/**
 * The coordinates of the points from the map that is to be converted
 * are placed in ax[] and ay[].
 * Those corresponding points in the other coordinate system
 * are placed in bx[], by[].
 *
 * The use[] contains a true if that point is to be used by the transform
 * library or a false (0) if it is not to be used.
 * The residuals each set of points contributes is placed in residuals[].
 *
 * Yah, I made them global.  So shoot me.
 **/

/******************
 *  STRUCTS:       *
 *******************/

/*  For GRASS data files  */
struct file_info {
    FILE *fp;
    char *mapset;
    char name[GPATH_MAX];
};