Revert "Revert 30dd9c2 e9d00bf db5f4c8 and bff0fae"

This reverts commit d0301ca89d.

Conflicts:
	.gitignore
This commit is contained in:
degasus
2013-01-24 16:11:07 +01:00
parent 2db0c4270e
commit d60cc373d1
13 changed files with 623 additions and 238 deletions

View File

@ -117,6 +117,8 @@ struct Rectangle
Rectangle(T theLeft, T theTop, T theRight, T theBottom)
: left(theLeft), top(theTop), right(theRight), bottom(theBottom)
{ }
bool operator==(const Rectangle& r) { return left==r.left && top==r.top && right==r.right && bottom==r.bottom; }
T GetWidth() const { return abs(right - left); }
T GetHeight() const { return abs(bottom - top); }