source: trunk/CLHEP/src/ThreeVectorR.cc@ 18

Last change on this file since 18 was 4, checked in by Pavel Demin, 16 years ago

first commit

File size: 910 bytes
RevLine 
[4]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
19namespace CLHEP {
20
21Hep3Vector & Hep3Vector::operator *= (const HepRotation & m) {
22 return *this = m * (*this);
23}
24
25Hep3Vector & Hep3Vector::transform(const HepRotation & m) {
26 return *this = m * (*this);
27}
28
29Hep3Vector & Hep3Vector::rotate(double angle, const Hep3Vector & axis){
30 HepRotation trans;
31 trans.rotate(angle, axis);
32 operator*=(trans);
33 return *this;
34}
35
36} // namespace CLHEP
Note: See TracBrowser for help on using the repository browser.