StelUtils.hpp   StelUtils.hpp
skipping to change at line 80 skipping to change at line 80
//! Convert an angle in radian to +-dms format. //! Convert an angle in radian to +-dms format.
//! @param sign true if positive, false otherwise //! @param sign true if positive, false otherwise
//! @param d degree component //! @param d degree component
//! @param m minute component //! @param m minute component
//! @param s second component //! @param s second component
void radToDms(double rad, bool& sign, unsigned int& d, unsigned int& m, double& s); void radToDms(double rad, bool& sign, unsigned int& d, unsigned int& m, double& s);
//! Convert an angle in radian to decimal degree.
//! @param sign true if positive, false otherwise
//! @param deg decimal degree
//! Convert an angle in radian to a decimal degree string.
//! @param angle input angle in radian
//! @param useD Define if letter "d" must be used instead of deg sig
n
//! @param useC Define if function should use 0-360 degrees
QString radToDecDegStr(const double angle, const bool useD=false, co
nst bool useC=false);
//! Convert an angle in radian to a hms formatted string. //! Convert an angle in radian to a hms formatted string.
//! If the second, minute part is == 0, it is not output //! If the second, minute part is == 0, it is not output
//! @param angle input angle in radian //! @param angle input angle in radian
//! Convert an angle in radian to a hms formatted string. //! Convert an angle in radian to a hms formatted string.
//! @param angle input angle in radian //! @param angle input angle in radian
//! @param decimal output decimal second value //! @param decimal output decimal second value
QString radToHmsStr(const double angle, const bool decimal=false); QString radToHmsStr(const double angle, const bool decimal=false);
skipping to change at line 102 skipping to change at line 114
//! @param angle input angle in radian //! @param angle input angle in radian
//! @param useD Define if letter "d" must be used instead of deg sig n //! @param useD Define if letter "d" must be used instead of deg sig n
//! Convert an angle in radian to a dms formatted string. //! Convert an angle in radian to a dms formatted string.
//! @param angle input angle in radian //! @param angle input angle in radian
//! @param useD Define if letter "d" must be used instead of deg sig n //! @param useD Define if letter "d" must be used instead of deg sig n
//! @param decimal output decimal second value //! @param decimal output decimal second value
QString radToDmsStr(const double angle, const bool decimal=false, co nst bool useD=false); QString radToDmsStr(const double angle, const bool decimal=false, co nst bool useD=false);
//! Convert an angle in decimal degree to +-dms format.
//! @param angle input angle in decimal degree
//! @param sign true if positive, false otherwise
//! @param d degree component
//! @param m minute component
//! @param s second component
void decDegToDms(double angle, bool& sign, unsigned int& d, unsigned
int& m, double& s);
//! Convert an angle in decimal degrees to a dms formatted string.
//! @param angle input angle in decimal degrees
QString decDegToDmsStr(const double angle);
//! Convert a dms formatted string to an angle in radian //! Convert a dms formatted string to an angle in radian
//! @param s The input string //! @param s The input string