CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ExtVec.cc
Go to the documentation of this file.
1 #if ((defined(__GNUC__) && (__GNUC__ == 4) && (__GNUC_MINOR__ > 7)) || defined(__clang__)) && !defined(__INTEL_COMPILER)
3 
4 #include <ostream>
5 std::ostream & operator<<(std::ostream & out, Vec4F const & v) {
6  return out << '(' << v[0] <<", " << v[1] <<", "<< v[2] <<", "<< v[3] <<')';
7 }
8 std::ostream & operator<<(std::ostream & out, Vec4D const & v) {
9  return out << '(' << v[0] <<", " << v[1] <<", "<< v[2] <<", "<< v[3] <<')';
10 }
11 std::ostream & operator<<(std::ostream & out, Vec2F const & v) {
12  return out << '(' << v[0] <<", " << v[1] <<')';
13 }
14 std::ostream & operator<<(std::ostream & out, Vec2D const & v) {
15  return out << '(' << v[0] <<", " << v[1] <<')';
16 }
17 
18 std::ostream & operator<<(std::ostream & out, ::As3D<Vec4F> const & v) {
19  return out << '(' << v.v[0] <<", " << v.v[1] <<", "<< v.v[2] <<')';
20 }
21 
22 std::ostream & operator<<(std::ostream & out, ::As3D<Vec4D> const & v) {
23  return out << '(' << v.v[0] <<", " << v.v[1] <<", "<< v.v[2] <<')';
24 }
25 
26 std::ostream & operator<<(std::ostream & out, Rot3F const & r){
27  return out << as3D(r.axis[0]) << '\n' << as3D(r.axis[1]) << '\n' << as3D(r.axis[2]);
28 }
29 
30 std::ostream & operator<<(std::ostream & out, Rot3D const & r){
31  return out << as3D(r.axis[0]) << '\n' << as3D(r.axis[1]) << '\n' << as3D(r.axis[2]);
32 }
33 
34 std::ostream & operator<<(std::ostream & out, Rot2F const & r){
35  return out << r.axis[0] << '\n' << r.axis[1];
36 }
37 
38 std::ostream & operator<<(std::ostream & out, Rot2D const & r){
39  return out << r.axis[0] << '\n' << r.axis[1];
40 }
41 #endif
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
Vec4< float > Vec4F
Definition: ExtVec.h:148
Vec4< double > Vec4D
Definition: ExtVec.h:152
Vec2< T > axis[2]
Definition: ExtVec.h:242
Vec2< float > Vec2F
Definition: ExtVec.h:147
tuple out
Definition: dbtoconf.py:99
Definition: ExtVec.h:240
Vec2< double > Vec2D
Definition: ExtVec.h:150
As3D< V > as3D(V const &v)
Definition: ExtVec.h:170
Vec axis[3]
Definition: ExtVec.h:178