CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

MatrixEqRotation.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 // ---------------------------------------------------------------------------
3 //
4 // This file is a part of the CLHEP - a Class Library for High Energy Physics.
5 //
6 
7 #ifdef GNUPRAGMA
8 #pragma implementation
9 #endif
10 
11 #include "CLHEP/Matrix/defs.h"
12 #include "CLHEP/Matrix/Matrix.h"
13 #include "CLHEP/Vector/Rotation.h"
14 
15 namespace CLHEP {
16 
18  if(9!=size_) {
19  //delete &m;
20  size_ = 9;
21  m.resize(size_);
22  }
23  nrow = ncol = 3;
24  mIter mm1;
25  mm1 = m.begin();
26  *mm1++ = m1.xx();
27  *mm1++ = m1.xy();
28  *mm1++ = m1.xz();
29  *mm1++ = m1.yx();
30  *mm1++ = m1.yy();
31  *mm1++ = m1.yz();
32  *mm1++ = m1.zx();
33  *mm1++ = m1.zy();
34  *mm1 = m1.zz();
35  return (*this);
36 }
37 
38 } // namespace CLHEP