Geant4_10
RotationIO.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 the output method of the HepRotation class,
7 // which was introduced when ZOOM PhysicsVectors was merged in.
8 //
9 
10 #ifdef GNUPRAGMA
11 #pragma implementation
12 #endif
13 
14 #include "CLHEP/Vector/Rotation.h"
15 
16 #include <iomanip>
17 #include <iostream>
18 
19 namespace CLHEP {
20 
21 std::ostream & HepRotation::print( std::ostream & os ) const {
22  os << "\n [ ( " <<
23  std::setw(11) << std::setprecision(6) << xx() << " " <<
24  std::setw(11) << std::setprecision(6) << xy() << " " <<
25  std::setw(11) << std::setprecision(6) << xz() << ")\n"
26  << " ( " <<
27  std::setw(11) << std::setprecision(6) << yx() << " " <<
28  std::setw(11) << std::setprecision(6) << yy() << " " <<
29  std::setw(11) << std::setprecision(6) << yz() << ")\n"
30  << " ( " <<
31  std::setw(11) << std::setprecision(6) << zx() << " " <<
32  std::setw(11) << std::setprecision(6) << zy() << " " <<
33  std::setw(11) << std::setprecision(6) << zz() << ") ]\n";
34  return os;
35 }
36 
37 
38 } // namespace CLHEP
double xx() const
std::ostream & print(std::ostream &os) const
Definition: RotationIO.cc:21
double yy() const
double xz() const
double zx() const
double yz() const
double zy() const
double yx() const
double zz() const
double xy() const