6 #ifndef SWIFT_MISC_GEO_EARTHANGLE_H
7 #define SWIFT_MISC_GEO_EARTHANGLE_H
11 namespace swift::misc::geo
19 template <
class LATorLON>
39 LATorLON
operator*(
double multiply)
const;
49 static LATorLON
fromWgs84(
const QString &wgsCoordinate);
62 QString
toWgs84(
const QChar pos,
const QChar neg,
int fractionalDigits = 3)
const;
70 LATorLON
const *derived()
const;
IconIndex
Index for each icon, allows to send them via DBus, efficiently store them, etc.
Base class for latitude / longitude.
CIcons::IconIndex toIcon() const
As icon, not implemented by all classes.
QString toWgs84(const QChar pos, const QChar neg, int fractionalDigits=3) const
To WGS84 string.
CEarthAngle & operator*=(double multiply)
Multiply operator *=.
CEarthAngle & operator+=(const CEarthAngle &latOrLon)
Plus operator +=.
static LATorLON fromWgs84(const QString &wgsCoordinate)
Latitude / Longitude from a WGS string such as.
LATorLON operator+(const CEarthAngle &latOrLon) const
Plus operator +.
CEarthAngle()
Default constructor.
QString convertToQString(bool i18n=false) const
Cast as QString.
LATorLON operator*(double multiply) const
Multiply operator *.
CEarthAngle & operator-=(const CEarthAngle &latOrLon)
Minus operator-=.
Physical unit angle (radians, degrees)
Specialized class for angles (degrees, radian).
double value() const
Value in current unit.
CAngle operator-() const
Unary operator -.
#define SWIFT_MISC_EXPORT_DECLARE_TEMPLATE
Export explicit template declaration.