CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
ThreeVectorR.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// This is the implementation of those methods of the Hep3Vector class which
7// require linking of the HepRotation class. These methods have been broken
8// out of ThreeVector.cc.
9//
10
11#include "CLHEP/Vector/defs.h"
12#include "CLHEP/Vector/ThreeVector.h"
13#include "CLHEP/Vector/Rotation.h"
14
15namespace CLHEP {
16
18 return *this = m1 * (*this);
19}
20
22 return *this = m1 * (*this);
23}
24
25Hep3Vector & Hep3Vector::rotate(double angle1, const Hep3Vector & aaxis){
26 HepRotation trans;
27 trans.rotate(angle1, aaxis);
28 operator*=(trans);
29 return *this;
30}
31
32} // namespace CLHEP
Hep3Vector & operator*=(double)
Hep3Vector & transform(const HepRotation &)
Definition: ThreeVectorR.cc:21
Hep3Vector & rotate(double, const Hep3Vector &)
Definition: ThreeVectorR.cc:25
HepRotation & rotate(double delta, const Hep3Vector &axis)
Definition: Rotation.cc:44