From 65a18ed5da8b80120f58940ee2f78025bb4f59eb Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Sun, 28 Mar 2010 20:20:47 +0000
Subject: [PATCH] add method operator<<

[[Imported from SVN: r5805]]
---
 src/rotation.hh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/rotation.hh b/src/rotation.hh
index 9cccac85..6961fb7e 100644
--- a/src/rotation.hh
+++ b/src/rotation.hh
@@ -104,6 +104,13 @@ public:
     double angle_;
 };
 
+//! Send configuration to output stream
+template <class T>
+std::ostream& operator<< (std::ostream& s, const Rotation<2,T>& c)
+  {
+      return s << "[" << c.angle_ << "  (" << std::sin(c.angle_) << " " << std::cos(c.angle_) << ") ]";
+  }
+
 
 /** \brief Specialization for dim==3 
 
-- 
GitLab