X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=coordinate-system.h;h=7c3d100ab5111d13fc42b14e7e7a9ecf73ea9c39;hb=4c16ea9637aef4ee32b83af36eb86e5e85a889ea;hp=78a4620c33f29952d95f69add3a915be4edcb46a;hpb=9ce27ec255b0d95fb8fd12c1c2c4af6a1a29f81a;p=ptas diff --git a/coordinate-system.h b/coordinate-system.h index 78a4620..7c3d100 100644 --- a/coordinate-system.h +++ b/coordinate-system.h @@ -1,8 +1,25 @@ #ifndef COORDINATE_SYSTEM_H #define COORDINATE_SYSTEM_H -void wgs84_to_kkj2(double inLatitude, double inLongitude, double *outLatitude, double *outLongitude); +// Type for KKJ x/y coordinates +typedef unsigned int KKJ; -void kkj2_to_wgs84(double inLatitude, double inLongitude, double *outLatitude, double *outLongitude); +/** + * Transformes WGS84 longitude/latitude coordinates to KKJ x/y coordinates. + * @param longitude the input longitude in degrees + * @param latitude the input latitude in degrees + * @param outX the result x (easting) + * @param outY the result y (northing) + */ +void WGS84lola_to_KKJxy(double longitude, double latitude, KKJ *outX, KKJ *outY); + +/** + * Transformes KKJ x/y coordinates to WGS84 longitude/latitude coordinates. + * @param x the input x (easting) + * @param y the input y (northing) + * @param outLongitude the result longitude in degrees + * @param outLatitude the result latitude in degrees + */ +void KKJxy_to_WGS84lola(KKJ x, KKJ y, double *outLongitude, double *outLatitude); #endif