-// $Id: log.hpp 3327 2006-04-13 15:02:40Z ravu_al_hemio $
+// $Id$
//
// SuperTux Debug Helper Functions
// Copyright (C) 2006 Christoph Sommer <christoph.sommer@2006.expires.deltadevelopment.de>
#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;
+}