Kstars
dms.h
347 * @brief deltaAngle Return the shortest difference (path) between this angle and the supplied angle. The range is normalized to [-180,+180]
373 const QString toDMSString(const bool forceSign = false, const bool machineReadable = false, const bool highPrecision=false) const;
380 const QString toHMSString(const bool machineReadable = false, const bool highPrecision=false) const;
413 static long unsigned redundant_trig_function_calls; // counts number of redundant trig function calls
511 inline dms operator "" _dms(const char *dmsString) { return dms::fromString(QString(dmsString), true); }
516 inline dms operator "" _hms(const char *hmsString) { return dms::fromString(QString(hmsString), false); }
static constexpr double PI
PI is a const static member; it's public so that it can be used anywhere, as long as dms....
Definition: dms.h:385
virtual void setD(const double &x)
Sets floating-point value of angle, in degrees.
Definition: dms.h:179
static constexpr double DegToRad
DegToRad is a const static member equal to the number of radians in one degree (dms::PI/180....
Definition: dms.h:390
void SinCos(double &s, double &c) const
Compute Sine and Cosine of the angle simultaneously.
Definition: dms.h:444
const QString toHMSString(const bool machineReadable=false, const bool highPrecision=false) const
Definition: dms.cpp:370
virtual void setH(const double &x)
Sets floating-point value of angle, in hours.
Definition: dms.h:210
dms(const int &d, const int &m=0, const int &s=0, const int &ms=0)
Set the floating-point value of the angle according to the four integer arguments.
Definition: dms.h:62
const QString toDMSString(const bool forceSign=false, const bool machineReadable=false, const bool highPrecision=false) const
Definition: dms.cpp:279
const QCA_EXPORT SecureArray operator+(const SecureArray &a, const SecureArray &b)
virtual bool setFromString(const QString &s, bool isDeg=true)
Attempt to parse the string argument as a dms value, and set the dms object accordingly.
Definition: dms.cpp:48
virtual void setRadians(const double &Rad)
Set angle according to the argument, in radians.
Definition: dms.h:333
const dms deltaAngle(dms angle) const
deltaAngle Return the shortest difference (path) between this angle and the supplied angle.
Definition: dms.cpp:259
void reduceToRange(enum dms::AngleRanges range)
Reduce this angle to the given range.
Definition: dms.cpp:438
const dms reduce() const
return the equivalent angle between 0 and 360 degrees.
Definition: dms.cpp:251
dms(const QString &s, bool isDeg=true)
Construct an angle from a string representation.
Definition: dms.h:103
static dms fromString(const QString &s, bool deg)
Static function to create a DMS object from a QString.
Definition: dms.cpp:421
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Jun 6 2023 03:56:46 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Jun 6 2023 03:56:46 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.