Kstars
cachingdms.cpp
20long CachingDms::cachingdms_delta = 0; // difference of ( trig function calls ) - ( trig computations )
52CachingDms::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);
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
void SinCos(double &s, double &c) const
Compute Sine and Cosine of the angle simultaneously.
Definition dms.h:447
virtual void setRadians(const double &Rad)
Set angle according to the argument, in radians.
Definition dms.h:333
QCA_EXPORT const SecureArray operator+(const SecureArray &a, const SecureArray &b)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:15:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:15:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.