Skip to content

Commit

Permalink
libdeng2: Improved text representation of Rectangle<>
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Apr 6, 2013
1 parent 5b86d46 commit dfc642e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doomsday/libdeng2/include/de/rectangle.h
Expand Up @@ -67,7 +67,8 @@ class Rectangle
return topLeft == other.topLeft && bottomRight == other.bottomRight;
}
String asText() const {
return "[" + topLeft.asText() + ", " + bottomRight.asText() + "]";
return "[" + topLeft.asText() + "->" + bottomRight.asText() +
" size:" + size().asText() + "]";
}
Type left() const { return topLeft.x; }
Type right() const { return bottomRight.x; }
Expand Down

0 comments on commit dfc642e

Please sign in to comment.