mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-12-01 07:01:16 +01:00
A more sane (and usefull) angular units compare
This commit is contained in:
parent
c43a68c3b0
commit
75bd542feb
@ -11,7 +11,12 @@ public:
|
|||||||
AngularUnits(int code);
|
AngularUnits(int code);
|
||||||
|
|
||||||
bool operator==(const AngularUnits &other) const
|
bool operator==(const AngularUnits &other) const
|
||||||
{return (_code == other._code && _f == other._f);}
|
{
|
||||||
|
if (_code == 9110)
|
||||||
|
return (other._code == 9110);
|
||||||
|
else
|
||||||
|
return (_f == other._f);
|
||||||
|
}
|
||||||
|
|
||||||
bool isNull() const {return std::isnan(_f);}
|
bool isNull() const {return std::isnan(_f);}
|
||||||
bool isValid() const {return !std::isnan(_f);}
|
bool isValid() const {return !std::isnan(_f);}
|
||||||
|
Loading…
Reference in New Issue
Block a user