X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Lambert93.h;h=b29d145dcc86d33856df5f7299f49f58d6201b70;hb=4a4e234c1bde9db8ac7e1020842ab355e03335b0;hp=f6e8a16c3fc2083f2771703a2675d9a13b5e83e8;hpb=d6c292cb8fd69d63c5295d32870e54d8aac352fc;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Lambert93.h b/src/HYDROData/HYDROData_Lambert93.h index f6e8a16c..b29d145d 100755 --- a/src/HYDROData/HYDROData_Lambert93.h +++ b/src/HYDROData/HYDROData_Lambert93.h @@ -1,44 +1,45 @@ - - #ifndef HYDROData_Lambert93_HeaderFile - #define HYDROData_Lambert93_HeaderFile - +#include class HYDROData_Lambert93 - { - public: + static double HYDRODATA_EXPORT toRad( double theDeg ); + static double HYDRODATA_EXPORT toDeg( double theRad ); - static double toRad( double theDeg ); - - static double toDeg( double theRad ); - + static void HYDRODATA_EXPORT toXY( double theLatitudeDeg, double theLongitudeDeg, + double& theX, double& theY ); + static void HYDRODATA_EXPORT toGeo( double theX, double theY, + double& theLatitudeDeg, double& theLongitudeDeg, + double theEps = 1e-5 ); - static void toXY( double theLatitudeDeg, double theLongitudeDeg, + static void HYDRODATA_EXPORT DMSToDeg( int theDeg, + int theMin, + double theSec, + double& theDegOut ); - double& theX, double& theY ); + static void HYDRODATA_EXPORT DMSToSec( int theDeg, + int theMin, + double theSec, + double& theSecOut ); - static void toGeo( double theX, double theY, + static void HYDRODATA_EXPORT degToDMS( double theDegIn, + int& theDeg, + int& theMin, + double& theSec ); - double& theLatitudeDeg, double& theLongitudeDeg, - - double theEps ); + static void HYDRODATA_EXPORT secToDMS( double theSecIn, + int& theDeg, + int& theMin, + double& theSec ); private: - - static double calc_rho( double phi ); - - static double calc_phi_inv( double rho, double eps ); - - static double calc_phi_ign( double rho, double eps ); - + static double calc_rho( double phi ); + static double calc_phi_inv( double rho, double eps ); + static double calc_phi_ign( double rho, double eps ); }; - - #endif -