- Timestamp:
- Nov 6, 2013, 2:44:39 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/Pacpus/PacpusTools/geodesie.h
r212 r213 21 21 22 22 #include <boost/math/constants/constants.hpp> 23 #include <boost/operators.hpp> 23 24 #include <cmath> 24 25 #include <iostream> … … 36 37 /// @todo Rewrite! 37 38 struct PACPUSTOOLS_API Matrice 39 : boost::multipliable<Matrice> 38 40 { 39 41 /// Copy ctor … … 41 43 /// Ctor 42 44 Matrice(); 45 /// Ctor 46 Matrice( 47 double l0c0, double l0c1, double l0c2, 48 double l1c0, double l1c1, double l1c2, 49 double l2c0, double l2c1, double l2c2 50 ); 51 43 52 /// @todo Documentation 44 53 void Apply(double v0, double v1, double v2, double& Mv0, double& Mv1, double& Mv2); 54 55 Matrice& operator*=(Matrice const& other); 45 56 46 57 /// @todo Documentation … … 67 78 68 79 PACPUSTOOLS_API Matrice TransMat(Matrice const& A); 69 PACPUSTOOLS_API Matrice ProdMat(Matrice const& A, Matrice const& B);80 PACPUSTOOLS_API PACPUS_DEPRECATED_MSG(Matrice ProdMat(Matrice const& A, Matrice const& B), "use Matrice::operator *"); 70 81 PACPUSTOOLS_API PACPUS_DEPRECATED_MSG(void Write(Matrice const& A, std::ostream& out), "use operator<<"); 71 82 PACPUSTOOLS_API std::ostream& operator<<(std::ostream& os, Matrice const& A); -
trunk/src/PacpusTools/src/geodesie.cpp
r212 r213 65 65 Mv1 = c0_l1 * v0 + c1_l1 * v1 + c2_l1 * v2; 66 66 Mv2 = c0_l2 * v0 + c1_l2 * v1 + c2_l2 * v2; 67 } 68 69 Matrice& Matrice::operator*=(Matrice const& other) 70 { 71 // TODO: optimize 72 *this = ProdMat(*this, other); 73 return *this; 67 74 } 68 75 … … 301 308 passage.c2_l2 = 1.0; 302 309 303 out = ProdMat(passage, in);310 out = passage * in; 304 311 double diff_h; 305 312 raf98.Interpol(Rad2Deg(lambda), Rad2Deg(phi), &diff_h); … … 369 376 passage.c2_l2 = 1.0; 370 377 371 out = ProdMat(passage, in);378 out = passage * in; 372 379 373 380 double diff_h;
Note:
See TracChangeset
for help on using the changeset viewer.