Geant4 Cross Reference |
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/Rotation.h" 11 12 #include <iomanip> 13 #include <iostream> 14 15 namespace CLHEP { 16 17 std::ostream & HepRotation::print( std::ostream & os ) const { 18 os << "\n [ ( " << 19 std::setw(11) << std::setprecision(6) << xx() << " " << 20 std::setw(11) << std::setprecision(6) << xy() << " " << 21 std::setw(11) << std::setprecision(6) << xz() << ")\n" 22 << " ( " << 23 std::setw(11) << std::setprecision(6) << yx() << " " << 24 std::setw(11) << std::setprecision(6) << yy() << " " << 25 std::setw(11) << std::setprecision(6) << yz() << ")\n" 26 << " ( " << 27 std::setw(11) << std::setprecision(6) << zx() << " " << 28 std::setw(11) << std::setprecision(6) << zy() << " " << 29 std::setw(11) << std::setprecision(6) << zz() << ") ]\n"; 30 return os; 31 } 32 33 34 } // namespace CLHEP 35