StelUtils.hpp   StelUtils.hpp 
skipping to change at line 52 skipping to change at line 52
{ {
//! Return the full name of stellarium, i.e. "stellarium 0.9.0" //! Return the full name of stellarium, i.e. "stellarium 0.9.0"
QString getApplicationName(); QString getApplicationName();
//! Return the version of stellarium, i.e. "0.9.0" //! Return the version of stellarium, i.e. "0.9.0"
QString getApplicationVersion(); QString getApplicationVersion();
//! Return the name and the version of operating system, i.e. "Mac O S X 10.7" //! Return the name and the version of operating system, i.e. "Mac O S X 10.7"
QString getOperatingSystemInfo(); QString getOperatingSystemInfo();
//! Return the user agent name, i.e. "Stellarium/0.15.0 (Linux)"
QString getUserAgentString();
//! Convert an angle in hms format to radian. //! Convert an angle in hms format to radian.
//! @param h hour component //! @param h hour component
//! @param m minute component //! @param m minute component
//! @param s second component //! @param s second component
//! @return angle in radian //! @return angle in radian
double hmsToRad(const unsigned int h, const unsigned int m, const do uble s); double hmsToRad(const unsigned int h, const unsigned int m, const do uble s);
//! Convert an angle in +-dms format to radian. //! Convert an angle in +-dms format to radian.
//! @param d degree component //! @param d degree component
//! @param m arcmin component //! @param m arcmin component
skipping to change at line 268 skipping to change at line 271
double getJDFromSystem(); double getJDFromSystem();
//! Convert a time of day to the fraction of a Julian Day. //! Convert a time of day to the fraction of a Julian Day.
//! Note that a Julian Day starts at 12:00, not 0:00, and //! Note that a Julian Day starts at 12:00, not 0:00, and
//! so 12:00 == 0.0 and 0:00 == 0.5 //! so 12:00 == 0.0 and 0:00 == 0.5
double qTimeToJDFraction(const QTime& time); double qTimeToJDFraction(const QTime& time);
//! Convert a fraction of a Julian Day to a QTime //! Convert a fraction of a Julian Day to a QTime
QTime jdFractionToQTime(const double jd); QTime jdFractionToQTime(const double jd);
//! Return number of hours offset from GMT, using Qt functions.
float getGMTShiftFromQT(const double jd);
//! Convert a QT QDateTime class to julian day. //! Convert a QT QDateTime class to julian day.
//! @param dateTime the UTC QDateTime to convert //! @param dateTime the UTC QDateTime to convert
//! @result the matching decimal Julian Day //! @result the matching decimal Julian Day
double qDateTimeToJd(const QDateTime& dateTime); double qDateTimeToJd(const QDateTime& dateTime);
//! Convert a julian day to a QDateTime. //! Convert a julian day to a QDateTime.
//! @param jd to convert //! @param jd to convert
//! @result the matching UTC QDateTime //! @result the matching UTC QDateTime
QDateTime jdToQDateTime(const double& jd); QDateTime jdToQDateTime(const double& jd);
skipping to change at line 296 skipping to change at line 296
//! @param m month, 1=January ... 12=December //! @param m month, 1=January ... 12=December
//! @param d day //! @param d day
//! @param h hour //! @param h hour
//! @param min minute //! @param min minute
//! @param s second //! @param s second
//! @result true in all conceivable cases. //! @result true in all conceivable cases.
bool getJDFromDate(double* newjd, const int y, const int m, const in t d, const int h, const int min, const int s); bool getJDFromDate(double* newjd, const int y, const int m, const in t d, const int h, const int min, const int s);
int numberOfDaysInMonthInYear(const int month, const int year); int numberOfDaysInMonthInYear(const int month, const int year);
bool changeDateTimeForRollover(int oy, int om, int od, int oh, int o min, int os, bool changeDateTimeForRollover(int oy, int om, int od, int oh, int o min, int os,
int* ry, int* rm, int* rd, int* rh, int* rmin, int* rs); int* ry, int* rm, int* rd, int* rh, i nt* rmin, int* rs);
//! Output a QVariantMap to qDebug(). Formats like a tree where the re are nested objects. //! Output a QVariantMap to qDebug(). Formats like a tree where the re are nested objects.
void debugQVariantMap(const QVariant& m, const QString& indent="", c onst QString& key=""); void debugQVariantMap(const QVariant& m, const QString& indent="", c onst QString& key="");
/// Compute acos(x) /// Compute acos(x)
//! The taylor serie is not accurate around x=1 and x=-1 //! The taylor serie is not accurate around x=1 and x=-1
inline float fastAcos(const float x) inline float fastAcos(const float x)
{ {
return static_cast<float>(M_PI_2) - (x + x*x*x * (1.f/6.f + x*x * (3.f/40.f + 5.f/112.f * x*x)) ); return static_cast<float>(M_PI_2) - (x + x*x*x * (1.f/6.f + x*x * (3.f/40.f + 5.f/112.f * x*x)) );
} }
skipping to change at line 606 skipping to change at line 606
//! @param jDay the date and time expressed as a julian day //! @param jDay the date and time expressed as a julian day
//! @return Delta-T in seconds //! @return Delta-T in seconds
double getDeltaTByKhalidSultanaZaidi(const double jDay); double getDeltaTByKhalidSultanaZaidi(const double jDay);
//! Get Secular Acceleration estimation for a given year. //! Get Secular Acceleration estimation for a given year.
//! Method described is here: http://eclipse.gsfc.nasa.gov/SEcat5/se cular.html //! Method described is here: http://eclipse.gsfc.nasa.gov/SEcat5/se cular.html
//! For adapting from -26 to -25.858, use -0.91072 * (-25.858 + 26.0 ) = -0.12932224 //! For adapting from -26 to -25.858, use -0.91072 * (-25.858 + 26.0 ) = -0.12932224
//! For adapting from -26 to -23.895, use -0.91072 * (-23.895 + 26.0 ) = -1.9170656 //! For adapting from -26 to -23.895, use -0.91072 * (-23.895 + 26.0 ) = -1.9170656
//! @param jDay the JD //! @param jDay the JD
//! @param ndot value n-dot which use in the algorithm //! @param ndot value n-dot which use in the algorithm
//! @param useDE43x Define if function should adapt calculation of t he secular acceleration of the Moon to the DE43x ephemeris
//! @return SecularAcceleration in seconds //! @return SecularAcceleration in seconds
//! @note n-dot for secular acceleration of the Moon in ELP2000-82B //! @note n-dot for secular acceleration of the Moon in ELP2000-82B
is -23.8946 "/cy/cy is -23.8946 "/cy/cy and for DE43x is -25.8 "/cy/cy
double getMoonSecularAcceleration(const double jDay, const double nd double getMoonSecularAcceleration(const double jDay, const double nd
ot); ot, const bool useDE43x);
//! Get the standard error (sigma) for the value of DeltaT //! Get the standard error (sigma) for the value of DeltaT
//! @param jDay the JD //! @param jDay the JD
//! @return sigma in seconds //! @return sigma in seconds
double getDeltaTStandardError(const double jDay); double getDeltaTStandardError(const double jDay);
//! Get value of the Moon fluctuation //! Get value of the Moon fluctuation
//! Source: The Rotation of the Earth, and the Secular Accelerations of the Sun, Moon and Planets //! Source: The Rotation of the Earth, and the Secular Accelerations of the Sun, Moon and Planets
//! Spencer Jones, H. //! Spencer Jones, H.
//! Monthly Notices of the Royal Astronomical Society, 99 (1939), 54 1-558 //! Monthly Notices of the Royal Astronomical Society, 99 (1939), 54 1-558
 End of changes. 5 change blocks. 
8 lines changed or deleted 9 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/