GammaLib  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GSkyDir.cpp File Reference

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&)"
 

Functions

bool operator== (const GSkyDir &a, const GSkyDir &b)
 Equality operator. More...
 
bool operator!= (const GSkyDir &a, const GSkyDir &b)
 Non equality operator. More...
 

Detailed Description

Sky direction class implementation.

Author
Juergen Knoedlseder

Definition in file GSkyDir.cpp.

Macro Definition Documentation

#define G_POSANG   "GSkyDir::posang(GSkyDir&, std::string&)"

Definition at line 41 of file GSkyDir.cpp.

Referenced by GSkyDir::posang().

Function Documentation

bool operator!= ( const GSkyDir a,
const GSkyDir b 
)

Non equality operator.

Parameters
[in]aFirst sky direction.
[in]bSecond sky direction.

Definition at line 1495 of file GSkyDir.cpp.

bool operator== ( const GSkyDir a,
const GSkyDir b 
)

Equality operator.

Parameters
[in]aFirst sky direction.
[in]bSecond 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 1431 of file GSkyDir.cpp.

References abs(), GSkyDir::b(), GSkyDir::dec(), GSkyDir::l(), GSkyDir::m_b, GSkyDir::m_dec, GSkyDir::m_has_lb, GSkyDir::m_has_radec, GSkyDir::m_l, GSkyDir::m_ra, and GSkyDir::ra().