CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DataFormats/GeometrySurface/src/TkRotation.cc

Go to the documentation of this file.
00001 #include "DataFormats/GeometrySurface/interface/TkRotation.h"
00002 #include <iostream>
00003 
00004 template<>
00005 std::ostream & operator<< <float>( std::ostream& s, const TkRotation<float>& rtmp) {
00006   return s << " (" << rtmp.xx() << ',' << rtmp.xy() << ',' << rtmp.xz() << ")\n"
00007            << " (" << rtmp.yx() << ',' << rtmp.yy() << ',' << rtmp.yz() << ")\n"
00008            << " (" << rtmp.zx() << ',' << rtmp.zy() << ',' << rtmp.zz() << ") ";
00009 } 
00010 
00011 template<>
00012 std::ostream & operator<< <double>( std::ostream& s, const TkRotation<double>& rtmp) {
00013   return s << " (" << rtmp.xx() << ',' << rtmp.xy() << ',' << rtmp.xz() << ")\n"
00014            << " (" << rtmp.yx() << ',' << rtmp.yy() << ',' << rtmp.yz() << ")\n"
00015            << " (" << rtmp.zx() << ',' << rtmp.zy() << ',' << rtmp.zz() << ") ";
00016 } 
00017 
00018 
00019 namespace geometryDetails {
00020   void TkRotationErr1() {
00021     std::cerr << "TkRotation: zero axis" << std::endl;
00022   }
00023   void TkRotationErr2() {
00024     std::cerr << "TkRotation::rotateAxes: bad axis vectors" << std::endl;
00025   }
00026 
00027 }