X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Lambert93.h;h=ae01670c01140cd0d5f2197839ea80bb23bc4e20;hb=cd6ea20d9a76665a24a533d0340385a335961f05;hp=f6e8a16c3fc2083f2771703a2675d9a13b5e83e8;hpb=d6c292cb8fd69d63c5295d32870e54d8aac352fc;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Lambert93.h b/src/HYDROData/HYDROData_Lambert93.h index f6e8a16c..ae01670c 100755 --- a/src/HYDROData/HYDROData_Lambert93.h +++ b/src/HYDROData/HYDROData_Lambert93.h @@ -1,44 +1,67 @@ - +// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE +// +// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// #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 toXY( double theLatitudeDeg, double theLongitudeDeg, + static void HYDRODATA_EXPORT toGeo( double theX, double theY, + double& theLatitudeDeg, double& theLongitudeDeg, + double theEps = 1e-5 ); - double& theX, double& theY ); + static void HYDRODATA_EXPORT DMSToDeg( int theDeg, + int theMin, + double theSec, + double& theDegOut ); - static void toGeo( double theX, double theY, + static void HYDRODATA_EXPORT DMSToSec( int theDeg, + int theMin, + double theSec, + double& theSecOut ); - double& theLatitudeDeg, double& theLongitudeDeg, + static void HYDRODATA_EXPORT degToDMS( double theDegIn, + int& theDeg, + int& theMin, + double& theSec ); - 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 -