CLHEP VERSION Reference Documentation
CLHEP Home Page
CLHEP Documentation
CLHEP Bug Reports
Vector
src
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
#ifdef GNUPRAGMA
12
#pragma implementation
13
#endif
14
15
#include "CLHEP/Vector/defs.h"
16
#include "CLHEP/Vector/ThreeVector.h"
17
#include "CLHEP/Vector/Rotation.h"
18
19
namespace
CLHEP
{
20
21
Hep3Vector
&
Hep3Vector::operator *=
(
const
HepRotation
& m1) {
22
return
*
this
= m1 * (*this);
23
}
24
25
Hep3Vector
&
Hep3Vector::transform
(
const
HepRotation
& m1) {
26
return
*
this
= m1 * (*this);
27
}
28
29
Hep3Vector
&
Hep3Vector::rotate
(
double
angle1,
const
Hep3Vector
& aaxis){
30
HepRotation
trans;
31
trans.
rotate
(angle1, aaxis);
32
operator*=
(trans);
33
return
*
this
;
34
}
35
36
}
// namespace CLHEP
CLHEP::HepRotation::rotate
HepRotation & rotate(double delta, const Hep3Vector &axis)
Definition:
Rotation.cc:48
CLHEP::HepRotation
Definition:
Geometry/CLHEP/Vector/Rotation.h:48
CLHEP
Definition:
ClhepVersion.h:13
CLHEP::Hep3Vector::rotate
Hep3Vector & rotate(double, const Hep3Vector &)
Definition:
ThreeVectorR.cc:29
CLHEP::Hep3Vector::operator*=
Hep3Vector & operator*=(double)
CLHEP::Hep3Vector
Definition:
Geometry/CLHEP/Vector/ThreeVector.h:41
CLHEP::Hep3Vector::transform
Hep3Vector & transform(const HepRotation &)
Definition:
ThreeVectorR.cc:25
Generated by
1.8.17