Skip to content

Commit

Permalink
libdeng2: Added more methods for de::Rectangle<>
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jan 22, 2013
1 parent 7eed15e commit 61d6c7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doomsday/libdeng2/include/de/rectangle.h
Expand Up @@ -55,6 +55,10 @@ class Rectangle
String asText() const {
return "[" + topLeft.asText() + ", " + bottomRight.asText() + "]";
}
Type left() const { return topLeft.x; }
Type right() const { return bottomRight.x; }
Type top() const { return topLeft.y; }
Type bottom() const { return bottomRight.y; }
Corner topRight() const {
return Corner(bottomRight.x, topLeft.y);
}
Expand Down

0 comments on commit 61d6c7c

Please sign in to comment.