Changeset 211 in pacpusframework for trunk/include
- Timestamp:
- Nov 6, 2013, 11:38:40 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/Pacpus/PacpusTools/geodesie.h
r210 r211 25 25 #include <vector> 26 26 27 #include <QMatrix4x4>28 #include <QVector3D>27 //#include <QMatrix4x4> 28 //#include <QVector3D> 29 29 30 30 namespace Geodesy 31 31 { 32 32 33 /// 9x9matrix ???33 /// 3x3 matrix ??? 34 34 /// 35 35 /// @todo Documentation … … 83 83 84 84 /// @todo Documentation 85 /// @param s filepath86 bool Load(const std::string& s);85 /// @param filepath Path to the input file with RAF98 data. 86 bool Load(const std::string& filepath); 87 87 88 88 /// @todo Documentation … … 102 102 inline double Deg2Rad(double deg) 103 103 { 104 using namespace ::boost::math::constants;104 using ::boost::math::constants::pi; 105 105 return deg * pi<double>() / 180.0; 106 106 } … … 108 108 inline double Rad2Deg(double rad) 109 109 { 110 using namespace ::boost::math::constants;110 using ::boost::math::constants::pi; 111 111 return rad * 180.0 / pi<double>(); 112 112 } … … 175 175 PACPUSTOOLS_API double ConvMerApp(double longitude); 176 176 177 /** 178 Converts Cartesian (x, y) coordinates to polar coordinates (r, theta) 179 */ 177 /// Converts Cartesian (x, y) coordinates to polar coordinates (r, theta) 180 178 template <typename _T1, typename _T2> 181 179 void cartesianToPolar(const _T1 x, const _T1 y, _T2& r, _T2& theta) … … 185 183 } 186 184 187 /** 188 Converts polar coordinates (r, theta) to Cartesian (x, y) coordinates 189 */ 185 /// Converts polar coordinates (r, theta) to Cartesian (x, y) coordinates 190 186 template <typename _T1, typename _T2> 191 187 void polarToCartesian(const _T1 r, const _T1 theta, _T2& x, _T2& y) … … 195 191 } 196 192 197 /** 198 Converts Cartesian (x, y, z) coordinates to spherical coordinates (r, theta, phi) 199 Angles expressed in radians. 200 */ 193 /// Converts Cartesian (x, y, z) coordinates to spherical coordinates (r, theta, phi) 194 /// Angles expressed in radians. 201 195 template <typename _T1, typename _T2> 202 196 void cartesianToSpherical(const _T1 x, const _T1 y, const _T1 z, _T2& r, _T2& theta, _T2& phi) … … 207 201 } 208 202 209 /** 210 Converts spherical coordinates (r, theta, phi) to Cartesian (x, y, z) coordinates. 211 Angles expressed in radians. 212 */ 203 /// Converts spherical coordinates (r, theta, phi) to Cartesian (x, y, z) coordinates. 204 /// Angles expressed in radians. 213 205 template <typename _T1, typename _T2> 214 206 void sphericalToCartesian(const _T1 r, const _T1 theta, const _T1 phi, _T2& x, _T2& y, _T2& z) … … 219 211 } 220 212 221 PACPUSTOOLS_API QMatrix4x4 yprenuToMatrix(QVector3D angle, QVector3D position);213 //PACPUSTOOLS_API QMatrix4x4 yprenuToMatrix(QVector3D angle, QVector3D position); 222 214 223 215 } // namespace Geodesy
Note:
See TracChangeset
for help on using the changeset viewer.