diff --git a/src/rotation.hh b/src/rotation.hh index 9cccac8575127d9a311f9fb21e28da7f410125d8..6961fb7e6c2a31d0baf3355e1c8f1fc75276949a 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