10 AngularUnits() : _code(0), _f(NAN
) {}
11 AngularUnits(int code
);
13 bool isNull() const {return std::isnan(_f
);}
14 bool isValid() const {return !std::isnan(_f
);}
16 double toDegrees(double val
) const;
17 double fromDegrees(double val
) const;
19 friend bool operator==(const AngularUnits
&au1
, const AngularUnits
&au2
);
21 friend QDebug
operator<<(QDebug dbg
, const AngularUnits
&au
);
28 inline bool operator==(const AngularUnits
&au1
, const AngularUnits
&au2
)
29 {return (au1
._f
== au2
._f
);}
32 QDebug
operator<<(QDebug dbg
, const AngularUnits
&au
);
35 #endif // ANGULARUNITS_H