CARMA C++
Declination.h
Go to the documentation of this file.
1 // $Id: Declination.h,v 1.1 2010/12/13 21:06:29 eml Exp $
2 
3 #ifndef SZA_UTIL_DECLINATION_H
4 #define SZA_UTIL_DECLINATION_H
5 
15 #include "carma/szautil/DecAngle.h"
16 
17 namespace sza {
18  namespace util {
19 
20  class Declination : public DecAngle {
21  public:
22 
26  Declination();
27 
31  virtual ~Declination();
32 
33  void addRadians(double radians);
34 
38  Declination operator+(Angle& angle) {
39  Declination sum;
40  sum.setRadians(radians_);
41  sum.addRadians(angle.radians());
42  return sum;
43  }
44 
48  Declination operator-(Angle& angle) {
49  Declination sum;
50  sum.setRadians(radians_);
51  sum.addRadians(-angle.radians());
52  return sum;
53  }
54 
55  private:
56  }; // End class Declination
57 
58  } // End namespace util
59 } // End namespace sza
60 
61 
62 
63 #endif // End #ifndef SZA_UTIL_DECLINATION_H