GammaLib  1.7.0.dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GHorizDir.cpp File Reference

Horizontal direction class implementation. More...

#include <cmath>
#include "GException.hpp"
#include "GTools.hpp"
#include "GMath.hpp"
#include "GHorizDir.hpp"
#include "GMatrix.hpp"
#include "GVector.hpp"

Go to the source code of this file.

Functions

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

Detailed Description

Horizontal direction class implementation.

Author
Karl Kosack

Definition in file GHorizDir.cpp.

Function Documentation

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

Non equality operator.

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

Definition at line 449 of file GHorizDir.cpp.

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

Equality operator.

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

Compare two horizontal directions. If the coordinate is at the pole, the azimuth value is irrelevant.

Todo:
: really should test for being within some tolerance here

Definition at line 425 of file GHorizDir.cpp.

References abs(), GHorizDir::m_alt, and GHorizDir::m_az.