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