MineLink
 All Data Structures Functions Variables Pages
rosetta.h
1 #ifndef __ROSETTA_H__
2 #define __ROSETTA_H__
3 
4 #include <vector>
5 #include <map>
6 
7 using std::vector;
8 using std::map;
9 
10 namespace delphos {
11 
18 class RosettaSlope {
19 private:
20  vector <double> _rosetta;
21  vector <double> _slopes;
22 
23 public:
24 
47  RosettaSlope(vector<double> azimuth_angles,vector<double> slopes);
48 
56  unsigned long NumAngles() const;
57 
63  unsigned long GetNumAngles() const;
64 
74  double SlopeAngleByIndex(const unsigned int& i) const;
75 
84  double AzimuthAngleByIndex(const unsigned int& i) const;
85 
103  double SlopeAngleAt(const double& azimuth) const;
104 };
105 }
106 
107 #endif
This class allows to store different slope angles depending on azimuth.
Definition: rosetta.h:18
double SlopeAngleAt(const double &azimuth) const
Returns the slope angle that applies at a given Azimuth.
Definition: rosetta.cpp:61
unsigned long NumAngles() const
Returns the number of angles (Azimuth/Slopes).
Definition: rosetta.cpp:42
double SlopeAngleByIndex(const unsigned int &i) const
Returns the -th slope angle.
Definition: rosetta.cpp:47
unsigned long GetNumAngles() const
Returns the number of angles (Azimuth/Slopes).
double AzimuthAngleByIndex(const unsigned int &i) const
Returns the -th-th azimuth angle.
Definition: rosetta.cpp:54
RosettaSlope(vector< double > azimuth_angles, vector< double > slopes)
Creates a new rosetta.
Definition: rosetta.cpp:14