ThreeVectorR.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 // This is the implementation of those methods of the Hep3Vector class which
00007 // require linking of the HepRotation class.  These methods have been broken 
00008 // out of ThreeVector.cc.
00009 //
00010 
00011 #ifdef GNUPRAGMA
00012 #pragma implementation
00013 #endif
00014 
00015 #include "CLHEP/Vector/ThreeVector.h"
00016 #include "CLHEP/Vector/Rotation.h"
00017 
00018 namespace CLHEP  {
00019 
00020 Hep3Vector & Hep3Vector::operator *= (const HepRotation & m1) {
00021   return *this = m1 * (*this);
00022 }
00023 
00024 Hep3Vector & Hep3Vector::transform(const HepRotation & m1) {
00025   return *this = m1 * (*this);
00026 }
00027 
00028 Hep3Vector & Hep3Vector::rotate(double aangle, const Hep3Vector & aaxis){
00029   HepRotation trans;
00030   trans.rotate(aangle, aaxis);
00031   operator*=(trans);
00032   return *this;
00033 }
00034 
00035 }  // namespace CLHEP

Generated on Mon May 27 17:50:35 2013 for Geant4 by  doxygen 1.4.7