Changeset 208 in pacpusframework for trunk/include
- Timestamp:
- Nov 6, 2013, 11:22:15 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/Pacpus/PacpusTools/geodesie.h
r198 r208 4 4 // %} 5 5 /// @file 6 /// @author Marek Kurdej <firstname.surname@utc.fr> 6 7 /// @author Jean Laneurit <firstname.surname@utc.fr> 7 8 /// @date April, 2010 … … 17 18 #include "PacpusToolsConfig.h" 18 19 19 //#include <boost/math/constants/constants.hpp>20 #include <boost/math/constants/constants.hpp> 20 21 #include <cmath> 21 22 #include <iostream> … … 25 26 #include <QVector3D> 26 27 27 namespace Geodesie { 28 29 #ifndef M_PI 30 # define M_PI 3.14159265358979323846 31 #endif 32 #ifndef M_PI_2 33 # define M_PI_2 1.57079632679489661923 34 #endif 35 #ifndef M_PI_4 36 # define M_PI_4 0.78539816339744830962 37 #endif 28 namespace Geodesie 29 { 38 30 39 31 /// 9x9 matrix ??? … … 106 98 inline double Deg2Rad(double deg) 107 99 { 108 return deg * M_PI / 180.0; 100 using namespace ::boost::math::constants; 101 return deg * pi<double>() / 180.0; 109 102 } 110 103 111 104 inline double Rad2Deg(double rad) 112 105 { 113 return rad * 180.0 / M_PI; 106 using namespace ::boost::math::constants; 107 return rad * 180.0 / pi<double>(); 114 108 } 115 109
Note:
See TracChangeset
for help on using the changeset viewer.