GammaLib 2.1.0.dev
|
Sky direction class implementation. More...
#include <cstdlib>
#include <cmath>
#include "GException.hpp"
#include "GTools.hpp"
#include "GSkyDir.hpp"
#include "GTime.hpp"
#include "GMatrix.hpp"
#include "GVector.hpp"
Go to the source code of this file.
Macros | |
#define | G_POSANG "GSkyDir::posang(GSkyDir&, std::string&)" |
#define | G_SET "GSkyDir::set(std::string&)" |
Set sky direction from coordinate string. | |
Functions | |
bool | operator== (const GSkyDir &a, const GSkyDir &b) |
Equality operator. | |
bool | operator!= (const GSkyDir &a, const GSkyDir &b) |
Non equality operator. | |
Sky direction class implementation.
Definition in file GSkyDir.cpp.
#define G_POSANG "GSkyDir::posang(GSkyDir&, std::string&)" |
Definition at line 41 of file GSkyDir.cpp.
Referenced by GSkyDir::posang().
#define G_SET "GSkyDir::set(std::string&)" |
Set sky direction from coordinate string.
[in] | coord | Coordinate string. |
Sets sky direction from coordinate string.
In addition, names of a few emblematic sources are translated into a sky direction using CDS coordinates. The following names are implement (case insensitive):
Definition at line 332 of file GSkyDir.cpp.
Non equality operator.
[in] | a | First sky direction. |
[in] | b | Second sky direction. |
Definition at line 1644 of file GSkyDir.cpp.
Equality operator.
[in] | a | First sky direction. |
[in] | b | Second sky direction. |
Compare two sky directions. If the coordinate is at the pole, the Right Ascension or Longitude value is irrelevant.
Comparisons are done dependent on the available coordinate system. This speeds up things and avoids unnecessary coordinate transformations.
Definition at line 1580 of file GSkyDir.cpp.