CLHEP VERSION Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
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/defs.h" 00016 #include "CLHEP/Vector/ThreeVector.h" 00017 #include "CLHEP/Vector/Rotation.h" 00018 00019 namespace CLHEP { 00020 00021 Hep3Vector & Hep3Vector::operator *= (const HepRotation & m1) { 00022 return *this = m1 * (*this); 00023 } 00024 00025 Hep3Vector & Hep3Vector::transform(const HepRotation & m1) { 00026 return *this = m1 * (*this); 00027 } 00028 00029 Hep3Vector & Hep3Vector::rotate(double angle1, const Hep3Vector & aaxis){ 00030 HepRotation trans; 00031 trans.rotate(angle1, aaxis); 00032 operator*=(trans); 00033 return *this; 00034 } 00035 00036 } // namespace CLHEP