Go to the documentation of this file.
52 operator double()
const;
56 static CEAngle Hms(
const std::vector<double>& angle_vec);
59 static CEAngle Dms(
const std::vector<double>& angle_vec);
66 std::string
HmsStr(
const char& delim=
':')
const;
67 std::vector<double>
HmsVect(
void)
const;
68 std::string
DmsStr(
const char& delim=
':')
const;
69 std::vector<double>
DmsVect(
void)
const;
70 double Deg(
void)
const;
71 double Rad(
void)
const;
79 void SetAngle(
const std::vector<double>& angle_vec,
static CEAngle Dms(const char *angle_str, const char &delim=0)
Return double constructed from a string representing degrees, minutes, seconds.
virtual ~CEAngle()
Destructor.
std::string DmsStr(const char &delim=':') const
Return string representing the angle in DD:MM:SS.
std::vector< double > DmsVect(void) const
Return vector of doubles representing the {degrees, arcmin, arcsec, arcsec-fraction}.
void free_members(void)
Free allocated data members.
std::vector< double > HmsVect(void) const
Return vector of doubles representing the {hours, min, sec, sec-fraction}.
double Rad(void) const
Return angle in radians as a double.
void SetAngle(const double &angle, const CEAngleType &angle_type=CEAngleType::RADIANS)
Set the angle from a double.
void SetAngle_DmsVect(const std::vector< double > &angle)
Set the angle from a vector of doubles of the form {degrees, arcmin, arcsec}.
void copy_members(const CEAngle &other)
Copy data members from another CEAngle object.
double angle_
Angle stored in radians.
CEAngle & operator=(const CEAngle &other)
Copy assignment operator.
void init_members(void)
Initialize data members.
double Deg(void) const
Return angle in degrees as a double.
static CEAngle Hms(const char *angle_str, const char &delim=0)
Return angle constructed from a string representing hours, minutes, seconds.
CEAngle()
Default constructor.
std::string HmsStr(const char &delim=':') const
Return string representing the angle in HH:MM:SS.
void SetAngle_HmsVect(const std::vector< double > &angle)
Set the angle from a vector of doubles representing {hours, minutes, seconds}.