1 #ifndef COORDINATE_SYSTEM_H
2 #define COORDINATE_SYSTEM_H
4 // Type for KKJ x/y coordinates
5 typedef unsigned int KKJ;
8 * Transformes WGS84 longitude/latitude coordinates to KKJ x/y coordinates.
9 * @param longitude the input longitude in degrees
10 * @param latitude the input latitude in degrees
11 * @param outX the result x (easting)
12 * @param outY the result y (northing)
14 void WGS84lola_to_KKJxy(double longitude, double latitude, KKJ *outX, KKJ *outY);
17 * Transformes KKJ x/y coordinates to WGS84 longitude/latitude coordinates.
18 * @param x the input x (easting)
19 * @param y the input y (northing)
20 * @param outLongitude the result longitude in degrees
21 * @param outLatitude the result latitude in degrees
23 void KKJxy_to_WGS84lola(KKJ x, KKJ y, double *outLongitude, double *outLatitude);