X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Lambert93.h;h=b29d145dcc86d33856df5f7299f49f58d6201b70;hb=deed826b2d6c39ba2ed410108cdf54d64cded321;hp=47f087541b78d31ab20635a181fc4c8b3fb6a010;hpb=7e60cb9b6e6e46019c188a935a97ef0d61d12abd;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Lambert93.h b/src/HYDROData/HYDROData_Lambert93.h index 47f08754..b29d145d 100755 --- a/src/HYDROData/HYDROData_Lambert93.h +++ b/src/HYDROData/HYDROData_Lambert93.h @@ -1,22 +1,45 @@ - -#ifndef HYDROData_Lambert93_HeaderFile -#define HYDROData_Lambert93_HeaderFile - -class HYDROData_Lambert93 -{ -public: - static double toRad( double theDeg ); - static double toDeg( double theRad ); - - static void toXY( double theLatitudeDeg, double theLongitudeDeg, - double& theX, double& theY ); - static void toGeo( double theX, double theY, - double& theLatitudeDeg, double& theLongitudeDeg, - double theEps ); -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 ); -}; - -#endif +#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 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 HYDRODATA_EXPORT DMSToDeg( int theDeg, + int theMin, + double theSec, + double& theDegOut ); + + static void HYDRODATA_EXPORT DMSToSec( int theDeg, + int theMin, + double theSec, + double& theSecOut ); + + static void HYDRODATA_EXPORT degToDMS( double theDegIn, + int& theDeg, + int& theMin, + double& theSec ); + + 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 ); +}; + +#endif