Kstars
cachingdms.h
89 * @note While this and other methods internally call setD, we want to avoid unnecessary vtable lookups. We'd rather have inline than virtual when speed matters in general.
a dms subclass that caches its sine and cosine values every time the angle is changed.
Definition cachingdms.h:19
void setUsing_atan2(const double &y, const double &x)
Sets the angle using atan2()
Definition cachingdms.cpp:62
static CachingDms fromString(const QString &s, bool deg)
Construct an angle from the given string.
Definition cachingdms.cpp:121
bool setFromString(const QString &s, bool isDeg=true) override
Sets the angle from string.
Definition cachingdms.h:120
friend CachingDms operator+(const CachingDms &, const CachingDms &)
Addition and subtraction operators.
Definition cachingdms.cpp:176
void setD(const double &x) override
Sets the angle in degrees supplied as a double.
Definition cachingdms.h:59
void setD(const int &d, const int &m, const int &s, const int &ms=0) override
Overrides dms::setD()
Definition cachingdms.h:74
void setH(const int &h, const int &m, const int &s, const int &ms=0) override
Sets the angle in HMS form.
Definition cachingdms.h:107
void setH(const double &x) override
Sets the angle in hours, supplied as a double.
Definition cachingdms.h:91
void SinCos(double &s, double &c) const
Compute Sine and Cosine of the angle simultaneously.
Definition dms.h:447
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
virtual void setD(const double &x)
Sets floating-point value of angle, in degrees.
Definition dms.h:179
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:39 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:39 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.