82 void radec(
const double&
ra,
const double&
dec);
84 void lb(
const double&
l,
const double&
b);
85 void lb_deg(
const double&
l,
const double&
b);
88 void rotate(
const double& phi,
const double& theta);
89 void rotate_deg(
const double& phi,
const double& theta);
90 void precess(
const double& from_epoch,
const double& to_epoch);
91 void sun(
const GTime& time,
const double& epoch = 2000.0);
92 void moon(
const GTime& time,
const double& epoch = 2000.0);
93 const double&
l(
void)
const;
94 const double&
b(
void)
const;
95 const double&
ra(
void)
const;
96 const double&
dec(
void)
const;
97 double l_deg(
void)
const;
98 double b_deg(
void)
const;
107 const std::string& coordsys =
"CEL")
const;
109 const std::string& coordsys =
"CEL")
const;
119 void euler(
const int& type,
const double& xin,
const double &yin,
120 double* xout,
double *yout)
const;
131 #if defined(G_SINCOS_CACHE)
310 const std::string& coordsys)
const
Definition of interface for all GammaLib classes.
Mathematical function definitions.
Vector class interface definition.
Interface class for all GammaLib classes.
void radec(const double &ra, const double &dec)
Set equatorial sky direction (radians)
void rotate_deg(const double &phi, const double &theta)
Rotate sky direction by zenith and azimuth angle.
void lb_deg(const double &l, const double &b)
Set galactic sky direction (degrees)
virtual ~GSkyDir(void)
Destructor.
double dec_deg(void) const
Returns Declination in degrees.
double ra_deg(void) const
Returns Right Ascension in degrees.
bool m_has_lb
Has galactic coordinates.
void radec_deg(const double &ra, const double &dec)
Set equatorial sky direction (degrees)
double b_deg(void) const
Returns galactic latitude in degrees.
void free_members(void)
Delete class members.
double dist_deg(const GSkyDir &dir) const
Compute angular distance between sky directions in degrees.
void rotate(const double &phi, const double &theta)
Rotate sky direction by zenith and azimuth angle.
const double & dec(void) const
Return Declination in radians.
GSkyDir * clone(void) const
Clone sky direction.
GVector galvector(void) const
Return sky direction as 3D vector in galactic coordinates.
double cos_dist(const GSkyDir &dir) const
Compute cosine of angular distance between sky directions.
void init_members(void)
Initialise class members.
const double & l(void) const
Return galactic longitude in radians.
void lb(const double &l, const double &b)
Set galactic sky direction (radians)
void clear(void)
Clear sky direction.
void euler(const int &type, const double &xin, const double &yin, double *xout, double *yout) const
General coordinate transformation routine for J2000.
double posang_deg(const GSkyDir &dir, const std::string &coordsys="CEL") const
Compute position angle between sky directions in degrees.
double dist(const GSkyDir &dir) const
Compute angular distance between sky directions in radians.
GSkyDir & operator=(const GSkyDir &dir)
Assignment operator.
void equ2gal(void) const
Convert equatorial to galactic coordinates.
void precess(const double &from_epoch, const double &to_epoch)
Precess sky direction.
std::string classname(void) const
Return class name.
friend bool operator!=(const GSkyDir &a, const GSkyDir &b)
Non equality operator.
std::string print(const GChatter &chatter=NORMAL) const
Print sky direction information.
void copy_members(const GSkyDir &dir)
Copy class members.
GVector celvector(void) const
Return sky direction as 3D vector in celestial coordinates.
void moon(const GTime &time, const double &epoch=2000.0)
Set sky direction to direction of Moon.
const double & ra(void) const
Return Right Ascension in radians.
double m_dec
Declination in radians.
const double & b(void) const
Return galactic latitude in radians.
GSkyDir(void)
Constructor.
bool m_has_radec
Has equatorial coordinates.
double m_l
Galactic longitude in radians.
double l_deg(void) const
Return galactic longitude in degrees.
void gal2equ(void) const
Convert galactic to equatorial coordinates.
friend bool operator==(const GSkyDir &a, const GSkyDir &b)
Equality operator.
double m_b
Galactic latitude in radians.
void sun(const GTime &time, const double &epoch=2000.0)
Set sky direction to direction of Sun.
double m_ra
Right Ascension in radians.
double posang(const GSkyDir &dir, const std::string &coordsys="CEL") const
Compute position angle between sky directions in radians.
double acos(const double &arg)
Computes acos by avoiding NaN due to rounding errors.