71 void altaz(
const double&
alt,
const double&
az);
72 void altaz_deg(
const double& alt,
const double& az);
74 void rotate_deg(
const double& phi,
const double& theta);
75 const double&
alt(
void)
const;
76 const double&
az(
void)
const;
106 return (
"GHorizDir");
const double & alt(void) const
Return altitude angle in radians.
void rotate_deg(const double &phi, const double &theta)
Rotate horizontal direction by zenith and azimuth angle.
void clear(void)
Clear horizontal direction.
void free_members(void)
Delete class members.
Definition of interface for all GammaLib classes.
double m_az
azimuth in radians
Horizontal (Alt/Az) direction class.
friend bool operator==(const GHorizDir &a, const GHorizDir &b)
Equality operator.
GHorizDir & operator=(const GHorizDir &dir)
Assignment operator.
friend bool operator!=(const GHorizDir &a, const GHorizDir &b)
Non equality operator.
double alt_deg(void) const
Return altitude angle in degrees.
virtual ~GHorizDir(void)
Destructor.
GHorizDir(void)
Constructor.
Interface class for all GammaLib classes.
void copy_members(const GHorizDir &dir)
Copy class members.
double dist(const GHorizDir &dir) const
Compute angular distance to horizontal direction in radians.
Vector class interface definition.
std::string classname(void) const
Return class name.
double az_deg(void) const
Return azimuth angle in degrees.
std::string print(const GChatter &chatter=NORMAL) const
Print horizontal direction information.
GHorizDir * clone(void) const
Clone horizontal direction.
void altaz_deg(const double &alt, const double &az)
Set horizontal direction (degrees)
void init_members(void)
Initialise class members.
void altaz(const double &alt, const double &az)
Set horizontal direction (radians)
double dist_deg(const GHorizDir &dir) const
Compute angular distance to horizontal direction in degrees.
GVector celvector(void) const
Return horizontal direction as 3D vector.
double m_alt
altitude in radians
const double & az(void) const
Return azimuth angle in radians.
double zenith_deg(void) const
Return zenith angle in degrees.
Mathematical function definitions.
double zenith(void) const
Return zenith angle in radians.