Salome HOME
Update flag for calculation case during polyline changing.
[modules/hydro.git] / src / HYDROData / HYDROData_Lambert93.h
1 #ifndef HYDROData_Lambert93_HeaderFile
2 #define HYDROData_Lambert93_HeaderFile
3
4 #include <HYDROData.h>
5
6 class HYDROData_Lambert93
7 {
8 public:
9   static double HYDRODATA_EXPORT  toRad( double theDeg );
10   static double HYDRODATA_EXPORT  toDeg( double theRad );
11
12   static void HYDRODATA_EXPORT    toXY( double theLatitudeDeg, double theLongitudeDeg,
13                                         double& theX, double& theY );
14
15   static void HYDRODATA_EXPORT    toGeo( double theX, double theY,
16                                          double& theLatitudeDeg, double& theLongitudeDeg,
17                                          double theEps = 1e-5 );
18
19   static void HYDRODATA_EXPORT    DMSToDeg( int theDeg,
20                                             int theMin,
21                                             double theSec,
22                                             double& theDegOut );
23
24   static void HYDRODATA_EXPORT    DMSToSec( int theDeg,
25                                             int theMin,
26                                             double theSec,
27                                             double& theSecOut );
28
29   static void HYDRODATA_EXPORT    degToDMS( double theDegIn,
30                                             int& theDeg,
31                                             int& theMin,
32                                             double& theSec );
33
34   static void HYDRODATA_EXPORT    secToDMS( double theSecIn,
35                                             int& theDeg,
36                                             int& theMin,
37                                             double& theSec );
38
39 private:
40   static double                   calc_rho( double phi );
41   static double                   calc_phi_inv( double rho, double eps );
42   static double                   calc_phi_ign( double rho, double eps );
43 };
44
45 #endif