1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-02-14 15:10:49 +01:00
GPXSee/src/common/garmin.h

17 lines
236 B
C
Raw Normal View History

#ifndef GARMIN_H
#define GARMIN_H
#include <QtGlobal>
inline double toWGS32(qint32 v)
{
2019-11-10 19:48:17 +01:00
return (double)(((double)v / (double)(1U<<31)) * (double)180);
}
2019-11-10 19:48:17 +01:00
inline double toWGS24(qint32 v)
{
return toWGS32(v<<8);
}
#endif // GARMIN_H