CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TkRotation.cc
Go to the documentation of this file.
2 #include <iostream>
3 
4 template<>
5 std::ostream & operator<< <float>( std::ostream& s, const TkRotation<float>& rtmp) {
6  return s << " (" << rtmp.xx() << ',' << rtmp.xy() << ',' << rtmp.xz() << ")\n"
7  << " (" << rtmp.yx() << ',' << rtmp.yy() << ',' << rtmp.yz() << ")\n"
8  << " (" << rtmp.zx() << ',' << rtmp.zy() << ',' << rtmp.zz() << ") ";
9 }
10 
11 template<>
12 std::ostream & operator<< <double>( std::ostream& s, const TkRotation<double>& rtmp) {
13  return s << " (" << rtmp.xx() << ',' << rtmp.xy() << ',' << rtmp.xz() << ")\n"
14  << " (" << rtmp.yx() << ',' << rtmp.yy() << ',' << rtmp.yz() << ")\n"
15  << " (" << rtmp.zx() << ',' << rtmp.zy() << ',' << rtmp.zz() << ") ";
16 }
17 
18 
19 namespace geometryDetails {
20  void TkRotationErr1() {
21  std::cerr << "TkRotation: zero axis" << std::endl;
22  }
23  void TkRotationErr2() {
24  std::cerr << "TkRotation::rotateAxes: bad axis vectors" << std::endl;
25  }
26 
27 }
std::ostream & operator<< < float >(std::ostream &s, const TkRotation< float > &r)
Definition: TkRotation.cc:5
void TkRotationErr2()
Definition: TkRotation.cc:23
void TkRotationErr1()
Definition: TkRotation.cc:20
std::ostream & operator<< < double >(std::ostream &s, const TkRotation< double > &r)
Definition: TkRotation.cc:12
string s
Definition: asciidump.py:422