-
Notifications
You must be signed in to change notification settings - Fork 2
/
coord_transform.h
55 lines (42 loc) · 1.63 KB
/
coord_transform.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
/************************************************************************/
/* */
/* P R O J E K T A V A L O N */
/* */
/* coord_transform.h The Class to store Transformation-Details */
/* */
/* Last Change 14.April 2009; Gion-Andri Büsser */
/* */
/************************************************************************/
#ifndef COORD_TRANSFORM_H
#define COORD_TRANSFORM_H
#include <DDXStore.h>
#include <DDXVariable.h>
DDX_STORE_TYPE(LakeTransformation,
struct {
double longitude_start; //in degrees
double latitude_start; //in degrees
double longitude_start_transf; //in meters
double latitude_start_transf; //in meters
//endpoint
double longitude_end; //in degrees
double latitude_end; //in degrees
double longitude_end_transf; //in meters
double latitude_end_transf; //in meters
// offsets so we dont have to start at 0/0 ...
int x_offset;
int y_offset;
//length in map-coordinates:
int x_length;
int y_length;
//start and end nodes in map-coordinates:
int x_start;
int y_start;
int x_end;
int y_end;
// real position offset, to afterwards calculate the real waypoint
// positions
int latitude_offset;
int longitude_offset;
}
);
#endif //coordination transformation .h