CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
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#include "CLHEP/Vector/defs.h"
11#include "CLHEP/Vector/Rotation.h"
12
13#include <iomanip>
14#include <iostream>
15
16namespace CLHEP {
17
18std::ostream & HepRotation::print( std::ostream & os ) const {
19 os << "\n [ ( " <<
20 std::setw(11) << std::setprecision(6) << xx() << " " <<
21 std::setw(11) << std::setprecision(6) << xy() << " " <<
22 std::setw(11) << std::setprecision(6) << xz() << ")\n"
23 << " ( " <<
24 std::setw(11) << std::setprecision(6) << yx() << " " <<
25 std::setw(11) << std::setprecision(6) << yy() << " " <<
26 std::setw(11) << std::setprecision(6) << yz() << ")\n"
27 << " ( " <<
28 std::setw(11) << std::setprecision(6) << zx() << " " <<
29 std::setw(11) << std::setprecision(6) << zy() << " " <<
30 std::setw(11) << std::setprecision(6) << zz() << ") ]\n";
31 return os;
32}
33
34
35} // namespace CLHEP
double zz() const
double yz() const
double zx() const
std::ostream & print(std::ostream &os) const
Definition: RotationIO.cc:18
double yx() const
double zy() const
double xx() const
double yy() const
double xz() const
double xy() const