Kstars
cachingdms.cpp
20 long CachingDms::cachingdms_delta = 0; // difference of ( trig function calls ) - ( trig computations )
52 CachingDms::CachingDms(const int &d, const int &m, const int &s, const int &ms) : dms(d, m, s, ms)
178 return CachingDms(a.Degrees() + b.Degrees(), sinA * cosB + cosA * sinB, cosA * cosB - sinA * sinB);
183 return CachingDms(a.Degrees() - b.Degrees(), sinA * cosB - cosA * sinB, cosA * cosB + sinA * sinB);
void setUsing_atan2(const double &y, const double &x)
Sets the angle using atan2()
Definition: cachingdms.cpp:62
a dms subclass that caches its sine and cosine values every time the angle is changed.
Definition: cachingdms.h:18
void SinCos(double &s, double &c) const
Compute Sine and Cosine of the angle simultaneously.
Definition: dms.h:444
const QCA_EXPORT SecureArray operator+(const SecureArray &a, const SecureArray &b)
virtual void setRadians(const double &Rad)
Set angle according to the argument, in radians.
Definition: dms.h:333
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
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:55:44 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:55:44 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.