CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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) { return out << '(' << v[0] << ", " << v[1] << ')'; }
12 std::ostream& operator<<(std::ostream& out, Vec2D const& v) { return out << '(' << v[0] << ", " << v[1] << ')'; }
13 
14 std::ostream& operator<<(std::ostream& out, ::As3D<Vec4F> const& v) {
15  return out << '(' << v.v[0] << ", " << v.v[1] << ", " << v.v[2] << ')';
16 }
17 
18 std::ostream& operator<<(std::ostream& out, ::As3D<Vec4D> const& v) {
19  return out << '(' << v.v[0] << ", " << v.v[1] << ", " << v.v[2] << ')';
20 }
21 
22 std::ostream& operator<<(std::ostream& out, Rot3F const& r) {
23  return out << as3D(r.axis[0]) << '\n' << as3D(r.axis[1]) << '\n' << as3D(r.axis[2]);
24 }
25 
26 std::ostream& operator<<(std::ostream& out, Rot3D 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, Rot2F const& r) { return out << r.axis[0] << '\n' << r.axis[1]; }
31 
32 std::ostream& operator<<(std::ostream& out, Rot2D const& r) { return out << r.axis[0] << '\n' << r.axis[1]; }
33 #endif
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
Vec4< float > Vec4F
Definition: ExtVec.h:152
Vec4< double > Vec4D
Definition: ExtVec.h:156
Vec2< T > axis[2]
Definition: ExtVec.h:229
Vec2< float > Vec2F
Definition: ExtVec.h:151
Definition: ExtVec.h:227
Vec2< double > Vec2D
Definition: ExtVec.h:154
As3D< V > as3D(V const &v)
Definition: ExtVec.h:174
Vec axis[3]
Definition: ExtVec.h:183