CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SSEVec.cc
Go to the documentation of this file.
1 #if !defined(__arm__) && !defined(__aarch64__) && !defined(__MIC__) && !defined(__powerpc64__) && !defined(__PPC64__) && !defined(__powerpc__)
4 using namespace mathSSE;
5 
6 #include <ostream>
7 std::ostream & operator<<(std::ostream & out, Vec4F const & v) {
8  return out << '(' << v[0] <<", " << v[1] <<", "<< v[2] <<", "<< v[3] <<')';
9 }
10 std::ostream & operator<<(std::ostream & out, Vec4D const & v) {
11  return out << '(' << v[0] <<", " << v[1] <<", "<< v[2] <<", "<< v[3] <<')';
12 }
13 std::ostream & operator<<(std::ostream & out, Vec2F const & v) {
14  return out << '(' << v[0] <<", " << v[1] <<')';
15 }
16 std::ostream & operator<<(std::ostream & out, Vec2D const & v) {
17  return out << '(' << v[0] <<", " << v[1] <<')';
18 }
19 
20 std::ostream & operator<<(std::ostream & out, As3D<float> const & v) {
21  return out << '(' << v.v[0] <<", " << v.v[1] <<", "<< v.v[2] <<')';
22 }
23 
24 std::ostream & operator<<(std::ostream & out, As3D<double> const & v) {
25  return out << '(' << v.v[0] <<", " << v.v[1] <<", "<< v.v[2] <<')';
26 }
27 
28 std::ostream & operator<<(std::ostream & out, Rot3F const & r){
29  return out << as3D(r.axis[0]) << '\n' << as3D(r.axis[1]) << '\n' << as3D(r.axis[2]);
30 }
31 
32 std::ostream & operator<<(std::ostream & out, Rot3D const & r){
33  return out << as3D(r.axis[0]) << '\n' << as3D(r.axis[1]) << '\n' << as3D(r.axis[2]);
34 }
35 
36 std::ostream & operator<<(std::ostream & out, Rot2F const & r){
37  return out << r.axis[0] << '\n' << r.axis[1];
38 }
39 
40 std::ostream & operator<<(std::ostream & out, Rot2D const & r){
41  return out << r.axis[0] << '\n' << r.axis[1];
42 }
43 
44 #endif /* !defined(__arm__) && !defined(__aarch64__) && !defined(__MIC__) */
Vec2< T > axis[2]
Definition: SSERot.h:105
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:188
Vec2< T > axis[2]
Definition: ExtVec.h:267
As3D< T > as3D(Vec4< T > const &v)
Definition: SSEVec.h:513
Vec4< T > axis[3]
Definition: SSERot.h:19
Definition: ExtVec.h:201
Definition: ExtVec.h:265
Vec axis[3]
Definition: ExtVec.h:203