|
Enroute Flight Navigation
A navigation app for VFR pilots
|
Convenience class for angle computations. More...
#include <Angle.h>
Public Member Functions | |
| Q_INVOKABLE bool | isFinite () const |
| Checks if the angle is valid. | |
| Q_INVOKABLE Units::Angle | operator+ (Units::Angle rhs) const |
| Sum of two angles. | |
| Q_INVOKABLE Units::Angle | operator- (Units::Angle rhs) const |
| Difference of two angles. | |
| Q_INVOKABLE bool | operator== (const Units::Angle &rhs) const =default |
| Comparison: equal. | |
| Q_INVOKABLE bool | operator!= (const Units::Angle &rhs) const =default |
| Comparison: not equal. | |
| Q_INVOKABLE double | cos () const |
| Cosine of an angle, as a dimension-less number. | |
| Q_INVOKABLE double | sin () const |
| Sine of an angle, as a dimension-less number. | |
| Q_INVOKABLE QString | toClock () const |
| Convert angle to clock position. | |
| Q_INVOKABLE double | toDEG () const |
| Convert angle to degrees. | |
| Q_INVOKABLE double | toRAD () const |
| Convert angle to radian. | |
Static Public Member Functions | |
| static Q_INVOKABLE Units::Angle | fromRAD (double angleInRAD) |
| Constructs an angle. | |
| static Q_INVOKABLE Units::Angle | fromDEG (double angleInDEG) |
| Constructs an angle. | |
| static Q_INVOKABLE Units::Angle | nan () |
| Constructs an invalid angle. | |
| static Q_INVOKABLE Units::Angle | asin (double arg) |
| Arcsine of a dimension-less number as an angle. | |
Convenience class for angle computations.
This extremely simple class allows computation with angles, without the need to worry about units.
|
inlinestatic |
|
inlinenodiscard |
|
inlinestatic |
|
inlinestatic |
|
inlinenodiscard |
|
inlinestatic |
|
nodiscarddefault |
Comparison: not equal.
| rhs | Right hand side of the comparison |
|
inline |
|
inline |
|
nodiscarddefault |
Comparison: equal.
| rhs | Right hand side of the comparison |
|
inlinenodiscard |
|
nodiscard |
Convert angle to clock position.
|
inlinenodiscard |
|
inlinenodiscard |