CMS 3D CMS Logo

ExtVec.cc
Go to the documentation of this file.
1 #if ( defined(__GNUC__) || 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:188
Vec4< float > Vec4F
Definition: ExtVec.h:161
Vec4< double > Vec4D
Definition: ExtVec.h:165
Vec2< T > axis[2]
Definition: ExtVec.h:255
Vec2< float > Vec2F
Definition: ExtVec.h:160
Definition: ExtVec.h:253
Vec2< double > Vec2D
Definition: ExtVec.h:163
As3D< V > as3D(V const &v)
Definition: ExtVec.h:183
Vec axis[3]
Definition: ExtVec.h:191