fix cr/lfs and remove trailing whitespaces...
[supertux.git] / src / log.cpp
index 086cfab..ca54b1d 100644 (file)
 
 #include "log.hpp"
 #include "math/vector.hpp"
+#include "math/rect.hpp"
 
 std::ostream& operator<<(std::ostream& out, const Vector& vector)
 {
-    out << '[' << vector.x << ',' << vector.y << ']';
-    return out;
+  out << '[' << vector.x << ',' << vector.y << ']';
+  return out;
 }
 
+std::ostream& operator<<(std::ostream& out, const Rect& rect)
+{
+  out << "[" << rect.get_left() << "," << rect.get_top() << "   "
+             << rect.get_right() << "," << rect.get_bottom() << "]";
+  return out;
+}