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

MatrixEqRotation.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 // ---------------------------------------------------------------------------
00003 //
00004 // This file is a part of the CLHEP - a Class Library for High Energy Physics.
00005 //
00006 
00007 #ifdef GNUPRAGMA
00008 #pragma implementation
00009 #endif
00010 
00011 #include "CLHEP/Matrix/defs.h"
00012 #include "CLHEP/Matrix/Matrix.h"
00013 #include "CLHEP/Vector/Rotation.h"
00014 
00015 namespace CLHEP {
00016 
00017 HepMatrix & HepMatrix::operator=(const HepRotation &m1) {
00018   if(9!=size_) {
00019     //delete &m;
00020     size_ = 9;
00021     m.resize(size_);
00022   }
00023   nrow = ncol = 3;
00024   mIter mm1;
00025   mm1 = m.begin();
00026   *mm1++ = m1.xx();
00027   *mm1++ = m1.xy();
00028   *mm1++ = m1.xz();
00029   *mm1++ = m1.yx();
00030   *mm1++ = m1.yy();
00031   *mm1++ = m1.yz();
00032   *mm1++ = m1.zx();
00033   *mm1++ = m1.zy();
00034   *mm1   = m1.zz();
00035   return (*this);
00036 }
00037 
00038 }  // namespace CLHEP

Generated on 15 Nov 2012 for CLHEP by  doxygen 1.4.7