implemented RotatedDC

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@53 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-10-27 22:08:47 +00:00
parent 8dbc1d56c8
commit d9c9c40adf
3 changed files with 133 additions and 6 deletions
+8
View File
@@ -99,6 +99,14 @@ class RealRect {
inline RealRect(double x, double y, double w, double h)
: position(x,y), size(w,h)
{}
inline operator wxRect() const {
return wxRect(position.x, position.y, size.width, size.height);
}
/// Return a rectangle that is amount larger to all sides
inline RealRect grow(double amount) {
return RealRect(position.x - amount, position.y - amount, size.width + 2 * amount, size.height + 2 * amount);
}
};
// ----------------------------------------------------------------------------- : Operators