mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-12-02 23:49:09 +01:00
A much nicer (and faster) 24b conversion
This commit is contained in:
parent
b59112f74e
commit
0f670f9ddd
@ -10,9 +10,7 @@ inline double toWGS32(qint32 v)
|
|||||||
|
|
||||||
inline double toWGS24(qint32 v)
|
inline double toWGS24(qint32 v)
|
||||||
{
|
{
|
||||||
return (v < 0x800000)
|
return toWGS32(v<<8);
|
||||||
? (double)v * 360.0 / (double)(1U<<24)
|
|
||||||
: (double)(v - 0x1000000) * 360.0 / (double)(1<<24);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // GARMIN_H
|
#endif // GARMIN_H
|
||||||
|
Loading…
Reference in New Issue
Block a user