14 #ifndef CARMA_SERVICES_HOURANGLE_H
15 #define CARMA_SERVICES_HOURANGLE_H
45 const std::string& units);
50 double convert(
const std::string& convertTo)
const;
71 void reset(
double value,
const std::string& units);
121 return Angle::getAngleString(angle, precision,
false);
124 static std::string hms(
double decimalHours,
int precision);
133 double moduloPiDouble(
double value)
const;
142 inline static std::string hourUnits()
144 return "circle (hours/day)";
152 bool isHours(
const std::string& units)
const;
169 #endif //CARMA_SERVICES_HOURANGLE_H
double hours() const
Convenience method that returns the value of this angle in hours.
std::string getLstString(int precision=0)
Return LST for HourAngle value in +/-hh:mm:ss.s format.
double convert(const std::string &convertTo) const
Converts this quantity to any conformable units.
Representation of an angle, return values are always modulo 2PI radians.
HourAngle(double value, const std::string &units)
Construct an HourAngle given a value and units.
std::string getString(int precision=0)
Return the HourAngle value as a string in +/-hh:mm:ss.s format.
The Angle class can represent any angle in any units.
HourAngle & operator+=(const HourAngle &frequency)
Increment HourAngle.
HourAngle & operator-=(const HourAngle &frequency)
Decrement HourAngle.
const HourAngle operator+(const HourAngle &angle) const
Add two HourAngles.
static std::string getAngleString(double angle, int precision=0)
return angle in a +/-hh:mm:ss.s format
void reset(double value, const std::string &units)
Reset method to change value and/or units.
std::ostream & operator<<(std::ostream &os, const carma::services::Angle &angle)
Define the << operator to allow, e.g.
std::string getUnits() const
virtual ~HourAngle()
Destructor.
const HourAngle operator-(const HourAngle &angle) const
Subtract two HourAngles.
The HourAngle class extends carma::services::Angle to specifically support hour angles.