-
Notifications
You must be signed in to change notification settings - Fork 5
/
point.h
60 lines (50 loc) · 1.41 KB
/
point.h
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
53
54
55
56
57
58
59
60
/* ************************************************************
*
* MODULE: r.refine
*
* Authors: Jon Todd <[email protected]>, Laura Toma <[email protected]>
* Bowdoin College, USA
*
* Purpose: convert grid data to TIN
*
* COPYRIGHT:
* This program is free software under the GNU General Public
* License (>=v2). Read the file COPYING that comes with GRASS
* for details.
*
*
************************************************************ */
/******************************************************************************
*
* point.h declares point type and its components
*
* AUTHOR(S): Jonathan Todd - <[email protected]>
*
* UPDATED: jt 2005-08-15
*
* COMMENTS:
*
*****************************************************************************/
#ifndef POINT_H
#define POINT_H
#include <limits.h>
#include <float.h>
// Definition of coordinate type for x,y values. This can be changed
// as required by the data
//
typedef short COORD_TYPE;
#define COORD_TYPE_MAX SHRT_MAX
#define COORD_TYPE_MIN SHRT_MIN
#define COORD_TYPE_PRINT_CHAR "%hd"
// Definition of elevation type for z values. This can be changed as
// required by the data
typedef short ELEV_TYPE;
#define ELEV_TYPE_MAX SHRT_MAX // Fix me
#define ELEV_TYPE_MIN SHRT_MIN // Fix me
#define ELEV_TYPE_PRINT_CHAR "%hd"
// Point structurexs
typedef struct Point {
COORD_TYPE x,y;
ELEV_TYPE z;
} R_POINT;
#endif